aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-21 18:14:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-21 18:14:20 +0000
commit4fff4819a913c65ae23cfd389bc47c61919e4e1f (patch)
tree8ce65617b91cf5c1c9d9cd27fe81326113378ebf /test/Sema/const-eval.c
parent61490e9a965cfee8a78c12c6802138844f04250d (diff)
Evaluation of unary deref could call integer evaluator on non-integral
expr; hilarity ensued. - PR3640. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r--test/Sema/const-eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index 30075d5c77..aebcb6a3fd 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -40,3 +40,5 @@ struct s {
};
EVAL_EXPR(19, ((int)&*(char*)10 == 10 ? 1 : -1));
+
+EVAL_EXPR(20, __builtin_constant_p(*((int*) 10), -1, 1));