[cfe-commits] r60863 - /cfe/trunk/test/Sema/complex-promotion.c

Anders Carlsson andersca at mac.com
Wed Dec 10 15:58:00 PST 2008


Author: andersca
Date: Wed Dec 10 17:57:51 2008
New Revision: 60863

URL: http://llvm.org/viewvc/llvm-project?rev=60863&view=rev
Log:
Add another complex promotion test.

Modified:
    cfe/trunk/test/Sema/complex-promotion.c

Modified: cfe/trunk/test/Sema/complex-promotion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/complex-promotion.c?rev=60863&r1=60862&r2=60863&view=diff

==============================================================================
--- cfe/trunk/test/Sema/complex-promotion.c (original)
+++ cfe/trunk/test/Sema/complex-promotion.c Wed Dec 10 17:57:51 2008
@@ -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];





More information about the cfe-commits mailing list