gcc/testsuite/gcc.dg/pr28911.c
raw| 1 | /* PR target/28911 |
| 2 | The following used to cause crash on m68k-elf because 0x80000000 |
| 3 | was used as an SImode constant. */ |
| 4 | |
| 5 | /* { dg-do compile } */ |
| 6 | /* { dg-options "-O2" } */ |
| 7 | /* { dg-options "-O2 -m68000" { target m68k-*-* } } */ |
| 8 | |
| 9 | _Complex float |
| 10 | foo (float a) |
| 11 | { |
| 12 | return __builtin_copysign (a != a, a); |
| 13 | } |