blob: a2b31f929fb3adee38c747037f59acd6dd83f73a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -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];
Douglas Gregord4eea832010-04-09 00:35:39 +000017 a[0] = test3; // expected-warning{{incompatible pointer to integer conversion assigning to 'int' from 'int ()'}}
Mike Stumpd1969d82009-07-22 00:43:08 +000018 return 0;
Steve Naroffad7ef482007-08-25 14:37:06 +000019}
20short x; void test4(char c) { x += c; }
21int y; void test5(char c) { y += c; }