blob: a07155eea40335a228f08c436b4f3d649492b6e8 [file] [log] [blame]
Chris Lattner3b427b32007-10-11 00:18:28 +00001// RUN: clang -fsyntax-only -verify %s
Steve Naroffad7ef482007-08-25 14:37:06 +00002_Complex double X;
3void test1(int c) {
4 X = 5;
5}
6void test2() {
7 int i;
8 double d = i;
9 double _Complex a = 5;
10
11 test1(a);
12 a = 5;
13 d = i;
14}
15int test3() {
16 int a[2];
17 a[0] = test3; // expected-warning{{incompatible types assigning 'int (void)' to 'int'}}
18}
19short x; void test4(char c) { x += c; }
20int y; void test5(char c) { y += c; }