summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC/2005-02-20-AggregateSAVEEXPR.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/FrontendC/2005-02-20-AggregateSAVEEXPR.c')
-rw-r--r--llvm/test/FrontendC/2005-02-20-AggregateSAVEEXPR.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/2005-02-20-AggregateSAVEEXPR.c b/llvm/test/FrontendC/2005-02-20-AggregateSAVEEXPR.c
new file mode 100644
index 00000000000..7a955330331
--- /dev/null
+++ b/llvm/test/FrontendC/2005-02-20-AggregateSAVEEXPR.c
@@ -0,0 +1,19 @@
+// RUN: %llvmgcc %s -o /dev/null -S
+// Note:
+// We fail this on Sparc because the C library seems to be missing complex.h
+// 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.
+//
+// XFAIL: sparc
+
+#ifdef __CYGWIN__
+ #include <mingw/complex.h>
+#else
+ #include <complex.h>
+#endif
+
+int foo(complex float c) {
+ return creal(c);
+}
OpenPOWER on IntegriCloud