commit | 5abfe2c2363d3c9f2597664edf3810a80017759f | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Wed Dec 10 23:57:51 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Wed Dec 10 23:57:51 2008 +0000 |
tree | 0da203a831921f0654ecafad09cf18caf88eacc1 | |
parent | 5b1f3f0b21f1ad6999b0ae9f3fa3259737c799e5 [diff] |
Add another complex promotion test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60863 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/complex-promotion.c b/test/Sema/complex-promotion.c index a9b557d..f7e5f63 100644 --- a/test/Sema/complex-promotion.c +++ b/test/Sema/complex-promotion.c
@@ -9,3 +9,7 @@ __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];