summaryrefslogtreecommitdiff
path: root/test/Sema/complex-promotion.c
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
commit5abfe2c2363d3c9f2597664edf3810a80017759f (patch)
tree0da203a831921f0654ecafad09cf18caf88eacc1 /test/Sema/complex-promotion.c
parent5b1f3f0b21f1ad6999b0ae9f3fa3259737c799e5 (diff)
downloadclang-5abfe2c2363d3c9f2597664edf3810a80017759f.tar.gz
Add another complex promotion test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/complex-promotion.c')
-rw-r--r--test/Sema/complex-promotion.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/complex-promotion.c b/test/Sema/complex-promotion.c
index a9b557d221..f7e5f63884 100644
--- a/test/Sema/complex-promotion.c
+++ b/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];