diff options
Diffstat (limited to 'test/Sema/incompatible-sign.c')
-rw-r--r-- | test/Sema/incompatible-sign.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/incompatible-sign.c b/test/Sema/incompatible-sign.c new file mode 100644 index 0000000..a62f9a8 --- /dev/null +++ b/test/Sema/incompatible-sign.c @@ -0,0 +1,5 @@ +// RUN: clang-cc %s -verify -fsyntax-only + +int a(int* x); +int b(unsigned* y) { return a(y); } // expected-warning {{pointer types point to integer types with different sign}} + |