Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | //RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 8875334 | 2009-11-09 18:48:53 +0000 | [diff] [blame] | 2 | |
| 3 | char * c; |
Douglas Gregor | d4eea83 | 2010-04-09 00:35:39 +0000 | [diff] [blame] | 4 | char const ** c2 = &c; // expected-warning {{discards qualifiers in nested pointer types}} |
Fariborz Jahanian | 8875334 | 2009-11-09 18:48:53 +0000 | [diff] [blame] | 5 | |
| 6 | typedef char dchar; |
Douglas Gregor | d4eea83 | 2010-04-09 00:35:39 +0000 | [diff] [blame] | 7 | dchar *** c3 = &c2; // expected-warning {{discards qualifiers in nested pointer types}} |
Fariborz Jahanian | 8875334 | 2009-11-09 18:48:53 +0000 | [diff] [blame] | 8 | |
| 9 | volatile char * c4; |
Douglas Gregor | d4eea83 | 2010-04-09 00:35:39 +0000 | [diff] [blame] | 10 | char ** c5 = &c4; // expected-warning {{discards qualifiers in nested pointer types}} |