diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-08-18 20:32:55 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-08-18 20:32:55 +0000 |
commit | 19999b4816250351025bf07b289d7b2964d028cd (patch) | |
tree | 19983cf676a5559ceb5e94659820890fe75fa74e /clang/test/Sema/const-eval.c | |
parent | a36417321913cbe166572c3a00d8e59460c40ce2 (diff) | |
download | bcm5719-llvm-19999b4816250351025bf07b289d7b2964d028cd.tar.gz bcm5719-llvm-19999b4816250351025bf07b289d7b2964d028cd.zip |
Revert r245323, it caused PR24493.
llvm-svn: 245342
Diffstat (limited to 'clang/test/Sema/const-eval.c')
-rw-r--r-- | clang/test/Sema/const-eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/const-eval.c b/clang/test/Sema/const-eval.c index 317173a43bb..5f5b6f3dc19 100644 --- a/clang/test/Sema/const-eval.c +++ b/clang/test/Sema/const-eval.c @@ -118,6 +118,10 @@ float varfloat; const float constfloat = 0; EVAL_EXPR(43, varfloat && constfloat) // expected-error {{must have a constant size}} +// <rdar://problem/11205586> +// (Make sure we continue to reject this.) +EVAL_EXPR(44, "x"[0]); // expected-error {{variable length array}} + // <rdar://problem/10962435> EVAL_EXPR(45, ((char*)-1) + 1 == 0 ? 1 : -1) EVAL_EXPR(46, ((char*)-1) + 1 < (char*) -1 ? 1 : -1) |