Ted Kremenek | 9f3d942 | 2007-09-26 20:14:22 +0000 | [diff] [blame] | 1 | // RUN: clang -parse-ast -verify %s |
Steve Naroff | ad7ef48 | 2007-08-25 14:37:06 +0000 | [diff] [blame] | 2 | _Complex double X; |
3 | void test1(int c) { | ||||
4 | X = 5; | ||||
5 | } | ||||
6 | void test2() { | ||||
7 | int i; | ||||
8 | double d = i; | ||||
9 | double _Complex a = 5; | ||||
10 | |||||
11 | test1(a); | ||||
12 | a = 5; | ||||
13 | d = i; | ||||
14 | } | ||||
15 | int test3() { | ||||
16 | int a[2]; | ||||
17 | a[0] = test3; // expected-warning{{incompatible types assigning 'int (void)' to 'int'}} | ||||
18 | } | ||||
19 | short x; void test4(char c) { x += c; } | ||||
20 | int y; void test5(char c) { y += c; } |