Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | //RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | char * c; |
| 4 | char const ** c2 = &c; // expected-warning {{initializing, 'char const **' and 'char **' have different qualifiers in nested pointer types}} |
| 5 | |
| 6 | typedef char dchar; |
| 7 | dchar *** c3 = &c2; // expected-warning {{initializing, 'dchar ***' and 'char const ***' have different qualifiers in nested pointer types}} |
| 8 | |
| 9 | volatile char * c4; |
| 10 | char ** c5 = &c4; // expected-warning {{initializing, 'char **' and 'char volatile **' have different qualifiers in nested pointer types}} |