summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-12-10 23:57:51 +0000
committerAnders Carlsson <andersca@mac.com>2008-12-10 23:57:51 +0000
commit591b2224cb90b329fc7346fc2ab6de7b9d97191c (patch)
tree8134a8e4ea37ee3c29c4f6c793af0f439d9ceb47
parentb05961c700422ae4024d933fb2bd5cd30e816396 (diff)
downloadbcm5719-llvm-591b2224cb90b329fc7346fc2ab6de7b9d97191c.tar.gz
bcm5719-llvm-591b2224cb90b329fc7346fc2ab6de7b9d97191c.zip
Add another complex promotion test.
llvm-svn: 60863
-rw-r--r--clang/test/Sema/complex-promotion.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/complex-promotion.c b/clang/test/Sema/complex-promotion.c
index a9b557d2217..f7e5f638847 100644
--- a/clang/test/Sema/complex-promotion.c
+++ b/clang/test/Sema/complex-promotion.c
@@ -9,3 +9,7 @@ double d;
__typeof__ (d + 1i) e;
int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
+
+int g;
+int h[__builtin_classify_type(g + 1.0i) == 9 ? 1 : -1];
+int i[__builtin_classify_type(1.0i + a) == 9 ? 1 : -1];
OpenPOWER on IntegriCloud