diff options
author | Anders Carlsson <andersca@mac.com> | 2008-11-24 04:21:33 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-11-24 04:21:33 +0000 |
commit | 4bbc0e05a714d4ee4918a92a4a7049dd6ef33ad0 (patch) | |
tree | 08d73a921165e834dfae58880c35c754a93ac058 /test/Sema/const-eval.c | |
parent | 39f34e97d6a468f0a7dfa5664c61217cffc65b74 (diff) |
Fix bug in the constant evaluator. Fixes PR3115.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r-- | test/Sema/const-eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c index 726b7cbb29..67c27d40f2 100644 --- a/test/Sema/const-eval.c +++ b/test/Sema/const-eval.c @@ -17,3 +17,6 @@ void g0(void); EVAL_EXPR(11, (g0(), 12)) // FIXME: This should give an error EVAL_EXPR(12, 1.0&&2.0) EVAL_EXPR(13, x || 3.0) + +unsigned int l_19 = 1; +EVAL_EXPR(14, (1 ^ l_19) && 1); // expected-error {{fields must have a constant size}} |