diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2012-07-17 21:03:05 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2012-07-17 21:03:05 +0000 |
| commit | 4eafb6b77b00d4e0276942d3219f088583fc9e2b (patch) | |
| tree | e927f44978732483d0326f0b0e8b3577c6715dc3 /clang/test/SemaCXX/constant-expression.cpp | |
| parent | 60a2bba9760a52dfc6f5256c5130580e6bbf519e (diff) | |
| download | bcm5719-llvm-4eafb6b77b00d4e0276942d3219f088583fc9e2b.tar.gz bcm5719-llvm-4eafb6b77b00d4e0276942d3219f088583fc9e2b.zip | |
Don't treat overflow in floating-point conversions as a hard error in constant evaluation. <rdar://problem/11874571>.
llvm-svn: 160394
Diffstat (limited to 'clang/test/SemaCXX/constant-expression.cpp')
| -rw-r--r-- | clang/test/SemaCXX/constant-expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/constant-expression.cpp b/clang/test/SemaCXX/constant-expression.cpp index c997f3c5254..c06b6c03f18 100644 --- a/clang/test/SemaCXX/constant-expression.cpp +++ b/clang/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-error {{variable length}} + typedef int b[(int)4e10]; // expected-warning {{variable length}} expected-warning {{size of static array must be an integer constant expression}} } // PR12626 |

