2005-02-21 00:29:23 +01:00
|
|
|
// RUN: %llvmgcc %s -o /dev/null -S
|
2005-04-02 01:16:23 +02:00
|
|
|
// Note:
|
2006-04-20 19:43:41 +02:00
|
|
|
// We fail this on Sparc because the C library seems to be missing complex.h
|
2005-04-02 01:16:23 +02:00
|
|
|
// and the corresponding C99 complex support.
|
|
|
|
//
|
|
|
|
// We could modify the test to use only GCC extensions, but I don't know if
|
|
|
|
// that would change the nature of the test.
|
|
|
|
//
|
2005-11-08 22:11:33 +01:00
|
|
|
// XFAIL: sparc
|
2005-02-21 00:29:23 +01:00
|
|
|
|
2007-11-27 07:17:01 +01:00
|
|
|
#ifdef __CYGWIN__
|
|
|
|
#include <mingw/complex.h>
|
|
|
|
#else
|
|
|
|
#include <complex.h>
|
|
|
|
#endif
|
2005-02-21 00:29:23 +01:00
|
|
|
|
|
|
|
int foo(complex float c) {
|
|
|
|
return creal(c);
|
|
|
|
}
|