aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-02-13 00:10:10 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-02-13 00:10:10 +0000
commitc4a2638b5ef3e2d35d872614ceb655a7a22c58be (patch)
tree44205be72dc439218bc2d186683b4e803c71fa64 /test/Sema/const-eval.c
parent4967762125eeb722cd65ba588d6f90b4a175e8c9 (diff)
Fix for PR6274: teach constant folding to evaluate __builtin_expect.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r--test/Sema/const-eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index fee8d97f9b..9c537250a9 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -75,3 +75,4 @@ EVAL_EXPR(35, constbool)
EVAL_EXPR(36, constbool)
EVAL_EXPR(37, (1,2.0) == 2.0)
+EVAL_EXPR(38, __builtin_expect(1,1) == 1)