aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-15 18:47:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-15 18:47:04 +0000
commit35e12c90c1b107a75c5615aa76fdbd403661aaa6 (patch)
treefce436c91a034af8014797d24ead6fabd1a2fe83 /test/Sema/const-eval.c
parent928d69f2927c32e2f57a882a96c2bef1de79aa4b (diff)
Make the "unused result" warning a warning about run-time behavior, so
that we don't warn when there isn't going to be any computation anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r--test/Sema/const-eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index c132b347d7..9c537250a9 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -74,5 +74,5 @@ const _Bool constbool = 0;
EVAL_EXPR(35, constbool)
EVAL_EXPR(36, constbool)
-EVAL_EXPR(37, (1,2.0) == 2.0) // expected-warning {{expression result unused}}
+EVAL_EXPR(37, (1,2.0) == 2.0)
EVAL_EXPR(38, __builtin_expect(1,1) == 1)