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