[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Parser / implicit-casts.c
blobf05a0733f0a4bc806c5dc09f52b0b006ecb474e4
1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
2 _Complex double X;
3 void test1(int c) {
4 X = 5;
6 void test2(void) {
7 int i;
8 double d = i;
9 double _Complex a = 5;
11 test1(a);
12 a = 5;
13 d = i;
15 int test3(void) {
16 int a[2];
17 a[0] = test3; // expected-error{{incompatible pointer to integer conversion assigning to 'int' from 'int (void)'}}
18 return 0;
20 short x; void test4(char c) { x += c; }
21 int y; void test5(char c) { y += c; }