1 | // RUN: %clang_cc1 -verify -Wno-everything -Wsign-compare %s |
---|---|
2 | |
3 | int f0(int, unsigned); |
4 | int f0(int x, unsigned y) { |
5 | if (x=3); |
6 | return x < y; // expected-warning {{comparison of integers}} |
7 | } |
8 |
1 | // RUN: %clang_cc1 -verify -Wno-everything -Wsign-compare %s |
---|---|
2 | |
3 | int f0(int, unsigned); |
4 | int f0(int x, unsigned y) { |
5 | if (x=3); |
6 | return x < y; // expected-warning {{comparison of integers}} |
7 | } |
8 |