From 5abfe2c2363d3c9f2597664edf3810a80017759f Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 10 Dec 2008 23:57:51 +0000 Subject: Add another complex promotion test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60863 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/complex-promotion.c | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- cgit v1.2.1