blob: 6fef88b74e30de7c9114f727010b316db60bddac [file] [log] [blame]
Ted Kremenekea9c26b2009-01-20 23:28:34 +00001// XFAIL
Chris Lattnerec9f2bb2009-02-03 07:28:12 +00002// RUN: false
Chris Lattner55625822009-02-03 07:25:43 +00003// clang %s --test-pickling 2>&1 | grep -q 'SUCCESS'
Ted Kremenek50265402007-11-29 19:05:51 +00004
5int main(void)
6{
7 double _Complex a = 5;
8 double _Complex b = 42;
9
10 return a * b != b * a;
11}
12
13_Complex double bar(int);
14void test(_Complex double*);
15void takecomplex(_Complex double);
16
17void test2(int c) {
18 _Complex double X;
19 X = bar(1);
20 test(&X);
21 takecomplex(X);
22}
23
24_Complex double g1, g2;
25_Complex float cf;
26double D;
27
28void test3() {
29 g1 = g1 + g2;
30 g1 = g1 - g2;
31 g1 = g1 * g2;
32 g1 = +-~g1;
33
34 double Gr = __real g1;
35
36 cf += D;
37 D += cf;
38 cf /= g1;
39 g1 = g1 + D;
40 g1 = D + g1;
41}
42
43void t1() {
44 (__real__ cf) = 4.0;
45}
46
47void t2() {
48 (__imag__ cf) = 4.0;
49}
50