blob: 2e8e00018221ae7220f1c2a18b64cc11c28fa7b0 [file] [log] [blame]
Chris Lattner5cf216b2008-01-04 18:04:52 +00001// RUN: clang -fsyntax-only -verify -pedantic %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];
Chris Lattner52804082008-02-17 19:31:09 +000017 a[0] = test3; // expected-warning{{incompatible pointer to integer conversion assigning 'int ()', expected 'int'}}
Steve Naroffad7ef482007-08-25 14:37:06 +000018}
19short x; void test4(char c) { x += c; }
20int y; void test5(char c) { y += c; }