* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020411-1.c
blob89e2bae703bc4efe52b238941786c4b7f030095f
1 /* PR optimization/6177
2 This testcase ICEd because expr.c did not expect to see a CONCAT
3 as array rtl. */
5 extern void abort (void);
6 extern void exit (int);
8 __complex__ float foo (void)
10 __complex__ float f[1];
11 __real__ f[0] = 1.0;
12 __imag__ f[0] = 1.0;
13 f[0] = __builtin_conjf (f[0]);
14 return f[0];
17 int main (void)
19 __complex__ double d[1];
20 d[0] = foo ();
21 if (__real__ d[0] != 1.0
22 || __imag__ d[0] != -1.0)
23 abort ();
24 exit (0);