[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / decl-type-merging.c
blob7576cac7cba2115c06991261616382d767307997
1 // RUN: %clang_cc1 -fsyntax-only -std=c99 -verify -pedantic %s
3 int x[10];
4 int x[] = {1,2,3};
5 int testx[(sizeof(x) == sizeof(int) * 10) ? 1 : -1];
7 int (*a)(int (*x)[10], int (*y)[]);
8 int (*a)(int (*x)[], int (*y)[5]);
9 void b(void) {
10 int x[10], y[5];
11 a(&x, &y);
12 a(&y, &y); // expected-warning {{incompatible pointer}}
13 a(&x, &x); // expected-warning {{incompatible pointer}}