From: Eli Friedman Date: Wed, 18 Jul 2012 01:03:11 +0000 (+0000) Subject: Fix test so it works the same way on 32-bit and 64-bit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5912597f3a01f6b5a6f6c5543317d209dbbb0a87;p=clang Fix test so it works the same way on 32-bit and 64-bit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160415 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/constant-expression.cpp b/test/SemaCXX/constant-expression.cpp index c06b6c03f1..ec50cb7d92 100644 --- a/test/SemaCXX/constant-expression.cpp +++ b/test/SemaCXX/constant-expression.cpp @@ -115,7 +115,7 @@ int array2[recurse2]; // expected-warning {{variable length array}} expected-war namespace FloatConvert { typedef int a[(int)42.3]; typedef int a[(int)42.997]; - typedef int b[(int)4e10]; // expected-warning {{variable length}} expected-warning {{size of static array must be an integer constant expression}} + typedef int b[(long long)4e20]; // expected-warning {{variable length}} expected-error {{variable length}} expected-warning {{'long long' is an extension}} } // PR12626