diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-14 06:32:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-14 06:32:07 +0000 |
commit | 94dcecba32edf1c1c8e765dc2326eac6bc3ee963 (patch) | |
tree | be2fa74e02a2fc48417ce1ed31185da8a2464118 | |
parent | 7cbed03c00e246682e5292785d01e1c120ce54bd (diff) |
add a testcase.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57479 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/i-c-e2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/i-c-e2.c b/test/Sema/i-c-e2.c index 1afb7c90c2..587fcabbfb 100644 --- a/test/Sema/i-c-e2.c +++ b/test/Sema/i-c-e2.c @@ -14,3 +14,9 @@ void func(int x) } } + +// rdar://4213768 +int expr; +char y[__builtin_constant_p(expr) ? -1 : 1]; +char z[__builtin_constant_p(4) ? 1 : -1]; + |