pointer-conversion.c revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1//RUN: %clang_cc1 -fsyntax-only -verify %s
2
3char * c;
4char const ** c2 = &c; // expected-warning {{initializing, 'char const **' and 'char **' have different qualifiers in nested pointer types}}
5
6typedef char dchar;
7dchar *** c3 = &c2; // expected-warning {{initializing, 'dchar ***' and 'char const ***' have different qualifiers in nested pointer types}}
8
9volatile char * c4;
10char ** c5 = &c4; // expected-warning {{initializing, 'char **' and 'char volatile **' have different qualifiers in nested pointer types}}
11