summaryrefslogtreecommitdiff
path: root/clang/test/Sema/pointer-conversion.c
blob: 2d755ae42f3dd98699e3fb90d0232dcf4f24ee9d (about) (plain)
1
2
3
4
5
6
7
8
9
10
//RUN: %clang_cc1 -fsyntax-only -verify %s

char * c;
char const ** c2 = &c; // expected-warning {{discards qualifiers in nested pointer types}}

typedef char dchar;
dchar *** c3 = &c2; // expected-warning {{discards qualifiers in nested pointer types}}

volatile char * c4;
char ** c5 = &c4; // expected-warning {{discards qualifiers in nested pointer types}}