decl-type-merging.c revision 13ca96a238089fb8e622791bc0dc441eb2dd29b4
1// RUN: clang -fsyntax-only -std=c99 -verify -pedantic %s 2 3int x[10]; 4int x[] = {1,2,3}; 5int testx[(sizeof(x) == sizeof(int) * 10) ? 1 : -1]; 6 7int (*a)(int (*x)[10], int (*y)[]); 8int (*a)(int (*x)[], int (*y)[5]); 9int b() { 10int x[10], y[5]; 11a(&x, &y); 12a(&y, &y); // expected-warning {{incompatible pointer}} 13a(&x, &x); // expected-warning {{incompatible pointer}} 14} 15 16 17