summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/complex-int.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-14 21:38:57 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-14 21:38:57 +0000
commitc28f46c6b4ab7f9c79e0f3dfab794a4fa99029b9 (patch)
treec5e6b1b9b3aac77606bfc4d5edd92dc166420609 /clang/test/Sema/complex-int.c
parent012484d6c80fc1b2867c576d7d3468d8bb70847a (diff)
downloadbcm5719-llvm-c28f46c6b4ab7f9c79e0f3dfab794a4fa99029b9.tar.gz
bcm5719-llvm-c28f46c6b4ab7f9c79e0f3dfab794a4fa99029b9.zip
Teach Type::isIntegerType() about GCC's __complex__ integer extensions...
Bug submitted by Eli. llvm-svn: 45976
Diffstat (limited to 'clang/test/Sema/complex-int.c')
-rw-r--r--clang/test/Sema/complex-int.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/complex-int.c b/clang/test/Sema/complex-int.c
new file mode 100644
index 00000000000..f0c29a94d35
--- /dev/null
+++ b/clang/test/Sema/complex-int.c
@@ -0,0 +1,10 @@
+// RUN: clang %s -verify -fsyntax-only
+
+void a() {
+__complex__ int arr;
+__complex__ short brr;
+__complex__ int result;
+
+result = arr*brr;
+}
+
OpenPOWER on IntegriCloud