blob: 07176e61df06bf2f97a5806577e388725d87565b [file] [log] [blame]
Fariborz Jahanian88753342009-11-09 18:48:53 +00001//RUN: clang-cc -fsyntax-only -verify %s
2
3char * c;
4char const ** c2 = &c; // expected-error {{initializing, 'char const **' and 'char **' have different qualifiers in nested pointer types}}
5
6typedef char dchar;
7dchar *** c3 = &c2; // expected-error {{initializing, 'dchar ***' and 'char const ***' have different qualifiers in nested pointer types}}
8
9volatile char * c4;
10char ** c5 = &c4; // expected-error {{initializing, 'char **' and 'char volatile **' have different qualifiers in nested pointer types}}