2009-12-16 04:14:24 +08:00
|
|
|
//RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-11-10 02:48:53 +08:00
|
|
|
|
|
|
|
char * c;
|
2010-04-09 08:35:39 +08:00
|
|
|
char const ** c2 = &c; // expected-warning {{discards qualifiers in nested pointer types}}
|
2009-11-10 02:48:53 +08:00
|
|
|
|
|
|
|
typedef char dchar;
|
2010-04-09 08:35:39 +08:00
|
|
|
dchar *** c3 = &c2; // expected-warning {{discards qualifiers in nested pointer types}}
|
2009-11-10 02:48:53 +08:00
|
|
|
|
|
|
|
volatile char * c4;
|
2010-04-09 08:35:39 +08:00
|
|
|
char ** c5 = &c4; // expected-warning {{discards qualifiers in nested pointer types}}
|