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