aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2005-04-09-ComplexOps.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2005-04-09-ComplexOps.c b/test/CFrontend/2005-04-09-ComplexOps.c
new file mode 100644
index 0000000000..cadf99672c
--- /dev/null
+++ b/test/CFrontend/2005-04-09-ComplexOps.c
@@ -0,0 +1,6 @@
+// %llvmgcc %s -S -o -
+
+#include <math.h>
+#define I 1.0iF
+
+double __complex test(double X) { return -(X*I); }