]> granicus.if.org Git - clang/commitdiff
Add another complex promotion test.
authorAnders Carlsson <andersca@mac.com>
Wed, 10 Dec 2008 23:57:51 +0000 (23:57 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 10 Dec 2008 23:57:51 +0000 (23:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60863 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/complex-promotion.c

index a9b557d22176a66496908bef8713913449e52356..f7e5f638847d1d8f1c5ecdddf183f7bcec96a157 100644 (file)
@@ -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];