blob: 7191bf7c63f467abd404a07958eb2b9cebb8cd0e [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001//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}}