Chris Lattner | c19ff5c | 2005-02-20 23:29:23 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -o /dev/null -S |
John Criswell | d60c0ef | 2005-04-01 23:16:23 +0000 | [diff] [blame] | 2 | // Note: |
| 3 | // We fail this on SparcV9 because the C library seems to be missing complex.h |
| 4 | // and the corresponding C99 complex support. |
| 5 | // |
| 6 | // We could modify the test to use only GCC extensions, but I don't know if |
| 7 | // that would change the nature of the test. |
| 8 | // |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame^] | 9 | // XFAIL: sparc |
Chris Lattner | c19ff5c | 2005-02-20 23:29:23 +0000 | [diff] [blame] | 10 | |
| 11 | #include <complex.h> |
| 12 | |
| 13 | int foo(complex float c) { |
| 14 | return creal(c); |
| 15 | } |