diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-12-12 06:55:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-12-12 06:55:44 +0000 |
| commit | 85b25bc34461552733a03c1c31ad7a922ca56878 (patch) | |
| tree | c6b494830c31d42541289778e7e2336b5b2eecc3 /clang/test/Sema | |
| parent | 10da53c60c3ca7c6d976048c854d27ece193ed89 (diff) | |
| download | bcm5719-llvm-85b25bc34461552733a03c1c31ad7a922ca56878.tar.gz bcm5719-llvm-85b25bc34461552733a03c1c31ad7a922ca56878.zip | |
implement rdar://6091492 - ?: with __builtin_constant_p as the operand is an i-c-e.
llvm-svn: 60934
Diffstat (limited to 'clang/test/Sema')
| -rw-r--r-- | clang/test/Sema/i-c-e3.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Sema/i-c-e3.c b/clang/test/Sema/i-c-e3.c index 46b74decefa..e6e67d643d7 100644 --- a/clang/test/Sema/i-c-e3.c +++ b/clang/test/Sema/i-c-e3.c @@ -1,3 +1,8 @@ -// RUN: clang %s -fsyntax-only -verify +// RUN: clang %s -fsyntax-only -verify -pedantic int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} + +// rdar://6091492 - ?: with __builtin_constant_p as the operand is an i-c-e. +int expr; +char w[__builtin_constant_p(expr) ? expr : 1]; + |

