diff options
Diffstat (limited to 'clang/test/Sema/pointer-conversion.c')
-rw-r--r-- | clang/test/Sema/pointer-conversion.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/pointer-conversion.c b/clang/test/Sema/pointer-conversion.c new file mode 100644 index 0000000..2d755ae --- /dev/null +++ b/clang/test/Sema/pointer-conversion.c @@ -0,0 +1,10 @@ +//RUN: %clang_cc1 -fsyntax-only -verify %s + +char * c; +char const ** c2 = &c; // expected-warning {{discards qualifiers in nested pointer types}} + +typedef char dchar; +dchar *** c3 = &c2; // expected-warning {{discards qualifiers in nested pointer types}} + +volatile char * c4; +char ** c5 = &c4; // expected-warning {{discards qualifiers in nested pointer types}} |