diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-10 23:57:51 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-10 23:57:51 +0000 |
commit | 5abfe2c2363d3c9f2597664edf3810a80017759f (patch) | |
tree | 0da203a831921f0654ecafad09cf18caf88eacc1 /test/Sema/complex-promotion.c | |
parent | 5b1f3f0b21f1ad6999b0ae9f3fa3259737c799e5 (diff) | |
download | clang-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.c | 4 |
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]; |