blob: 2d755ae42f3dd98699e3fb90d0232dcf4f24ee9d [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001//RUN: %clang_cc1 -fsyntax-only -verify %s
2
3char * c;
4char const ** c2 = &c; // expected-warning {{discards qualifiers in nested pointer types}}
5
6typedef char dchar;
7dchar *** c3 = &c2; // expected-warning {{discards qualifiers in nested pointer types}}
8
9volatile char * c4;
10char ** c5 = &c4; // expected-warning {{discards qualifiers in nested pointer types}}