blob: 7a9553303314ebf3a10929a429ca0c5c2439ee3a [file] [log] [blame]
Chris Lattnerc19ff5c2005-02-20 23:29:23 +00001// RUN: %llvmgcc %s -o /dev/null -S
John Criswelld60c0ef2005-04-01 23:16:23 +00002// Note:
Chris Lattnerdc8a08e2006-04-20 17:43:41 +00003// We fail this on Sparc because the C library seems to be missing complex.h
John Criswelld60c0ef2005-04-01 23:16:23 +00004// 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 Criswellc0c186d2005-11-08 21:11:33 +00009// XFAIL: sparc
Chris Lattnerc19ff5c2005-02-20 23:29:23 +000010
Zhou Sheng515a6412007-11-27 06:17:01 +000011#ifdef __CYGWIN__
12 #include <mingw/complex.h>
13#else
14 #include <complex.h>
15#endif
Chris Lattnerc19ff5c2005-02-20 23:29:23 +000016
17int foo(complex float c) {
18 return creal(c);
19}