diff options
Diffstat (limited to 'clang/test/Sema/incompatible-sign.c')
-rw-r--r-- | clang/test/Sema/incompatible-sign.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/incompatible-sign.c b/clang/test/Sema/incompatible-sign.c new file mode 100644 index 0000000..6249feb --- /dev/null +++ b/clang/test/Sema/incompatible-sign.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only + +int a(int* x); // expected-note{{passing argument to parameter 'x' here}} +int b(unsigned* y) { return a(y); } // expected-warning {{passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign}} + |