summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/complex.c
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2007-07-13 22:15:44 +0000
committerGabor Greif <ggreif@gmail.com>2007-07-13 22:15:44 +0000
commitf7b1f667d427b117ba5bf8a9af46dc3862eae824 (patch)
treeeec7d8f0c465334e5b34dae88b7564dd5c5c1466 /clang/test/CodeGen/complex.c
parent983a8bbbb236283d3fcc8542c655a2262f407791 (diff)
downloadbcm5719-llvm-f7b1f667d427b117ba5bf8a9af46dc3862eae824.tar.gz
bcm5719-llvm-f7b1f667d427b117ba5bf8a9af46dc3862eae824.zip
a simple _Complex testcase
llvm-svn: 39836
Diffstat (limited to 'clang/test/CodeGen/complex.c')
-rw-r--r--clang/test/CodeGen/complex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/complex.c b/clang/test/CodeGen/complex.c
new file mode 100644
index 00000000000..001d148bc55
--- /dev/null
+++ b/clang/test/CodeGen/complex.c
@@ -0,0 +1,10 @@
+// RUN: clang -emit-llvm %s
+// XFAIL: *
+
+void main(void)
+{
+ double _Complex a = 5;
+ double _Complex b = 42;
+
+ return a * b == 123;
+}
OpenPOWER on IntegriCloud