Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr38969.c

raw
1 void abort (void);
2
3 __complex__ float
4 __attribute__ ((noinline)) foo (__complex__ float x)
5 {
6 return x;
7 }
8
9 __complex__ float
10 __attribute__ ((noinline)) bar (__complex__ float x)
11 {
12 return foo (x);
13 }
14
15 int main()
16 {
17 __complex__ float a, b;
18 __real__ a = 9;
19 __imag__ a = 42;
20
21 b = bar (a);
22
23 if (a != b)
24 abort ();
25
26 return 0;
27 }