Douglas Gregor | 6573cfd | 2008-10-21 23:43:52 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -pedantic -verify %s |
2 | int* quals1(int const * p); | ||||
3 | int* quals2(int const * const * pp); | ||||
4 | int* quals3(int const * * const * ppp); | ||||
5 | |||||
6 | void test_quals(int * p, int * * pp, int * * * ppp) { | ||||
7 | int const * const * pp2 = pp; | ||||
8 | quals1(p); | ||||
9 | quals2(pp); | ||||
10 | quals3(ppp); // expected-error {{ incompatible type passing 'int ***', expected 'int const **const *' }} | ||||
11 | } |