new testcase for previously unsupported unary complex operators
authorChris Lattner <sabre@nondot.org>
Sun, 10 Apr 2005 03:06:27 +0000 (03:06 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Apr 2005 03:06:27 +0000 (03:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21199 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2005-04-09-ComplexOps.c [new file with mode: 0644]

diff --git a/test/CFrontend/2005-04-09-ComplexOps.c b/test/CFrontend/2005-04-09-ComplexOps.c
new file mode 100644 (file)
index 0000000..cadf996
--- /dev/null
@@ -0,0 +1,6 @@
+// %llvmgcc %s -S -o -
+
+#include <math.h>
+#define I 1.0iF
+
+double __complex test(double X) { return -(X*I); }