summaryrefslogtreecommitdiff
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-10 03:06:27 +0000
committerChris Lattner <sabre@nondot.org>2005-04-10 03:06:27 +0000
commitd2b0e710d6daa252b9f53d32e6fd917d12ce2f1e (patch)
tree8c64357c0550397b7e76d133d7483dcab999b9b6 /test/CFrontend
parent27499e3f1beaf21b5afa95c0008649a6cfcadf7a (diff)
downloadllvm-d2b0e710d6daa252b9f53d32e6fd917d12ce2f1e.tar.gz
llvm-d2b0e710d6daa252b9f53d32e6fd917d12ce2f1e.tar.bz2
llvm-d2b0e710d6daa252b9f53d32e6fd917d12ce2f1e.tar.xz
new testcase for previously unsupported unary complex operators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-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); }