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