Chris Lattner | 8a8f903 | 2005-02-20 23:29:23 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -o /dev/null -S |
John Criswell | 9f680da | 2005-04-01 23:16:23 +0000 | [diff] [blame] | 2 | // Note: |
Chris Lattner | 5197dfa | 2006-04-20 17:43:41 +0000 | [diff] [blame] | 3 | // We fail this on Sparc because the C library seems to be missing complex.h |
John Criswell | 9f680da | 2005-04-01 23:16:23 +0000 | [diff] [blame] | 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 | 3bdbd30 | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 9 | // XFAIL: sparc |
Chris Lattner | 8a8f903 | 2005-02-20 23:29:23 +0000 | [diff] [blame] | 10 | |
Zhou Sheng | 73286d6 | 2007-11-27 06:17:01 +0000 | [diff] [blame^] | 11 | #ifdef __CYGWIN__ |
| 12 | #include <mingw/complex.h> |
| 13 | #else |
| 14 | #include <complex.h> |
| 15 | #endif |
Chris Lattner | 8a8f903 | 2005-02-20 23:29:23 +0000 | [diff] [blame] | 16 | |
| 17 | int foo(complex float c) { |
| 18 | return creal(c); |
| 19 | } |