aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-12 17:47:42 +0000
committerChris Lattner <sabre@nondot.org>2010-10-12 17:47:42 +0000
commit75c29a012793292ff4578015a9113bf086156d7f (patch)
tree9a5a41c08bb4464ceaeea974088815adfcd8ff0c /test/Sema/const-eval.c
parent141ecfeeb54948159facce6aeb586e2f6c406f78 (diff)
fix PR7885, rejecting invalid uses of __builtin_constant_p.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116317 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 42097e75f3..9f2d32769f 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -41,7 +41,7 @@ struct s {
EVAL_EXPR(19, ((int)&*(char*)10 == 10 ? 1 : -1));
-EVAL_EXPR(20, __builtin_constant_p(*((int*) 10), -1, 1));
+EVAL_EXPR(20, __builtin_constant_p(*((int*) 10)));
EVAL_EXPR(21, (__imag__ 2i) == 2 ? 1 : -1);