[llvm-commits] CVS: llvm/test/Regression/CFrontend/2005-05-09-ComplexOps.c
Chris Lattner
lattner at cs.uiuc.edu
Sat Apr 9 20:06:43 PDT 2005
Changes in directory llvm/test/Regression/CFrontend:
2005-05-09-ComplexOps.c added (r1.1)
---
Log message:
new testcase for previously unsupported unary complex operators
---
Diffs of the changes: (+6 -0)
2005-05-09-ComplexOps.c | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/test/Regression/CFrontend/2005-05-09-ComplexOps.c
diff -c /dev/null llvm/test/Regression/CFrontend/2005-05-09-ComplexOps.c:1.1
*** /dev/null Sat Apr 9 22:06:37 2005
--- llvm/test/Regression/CFrontend/2005-05-09-ComplexOps.c Sat Apr 9 22:06:27 2005
***************
*** 0 ****
--- 1,6 ----
+ // %llvmgcc %s -S -o -
+
+ #include <math.h>
+ #define I 1.0iF
+
+ double __complex test(double X) { return -(X*I); }
More information about the llvm-commits
mailing list