diff options
| author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-10-09 04:51:06 +0000 |
|---|---|---|
| committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-10-09 04:51:06 +0000 |
| commit | 718dbd7a4f75ba6b92177cddd8c176c787c5731b (patch) | |
| tree | 82fd74a7e94b6b6cb903342a7d69c6a33ee53cac /clang/test/Sema/i-c-e.c | |
| parent | 52da8da03bcd727f9e0060d71cae8ff04385ab84 (diff) | |
| download | bcm5719-llvm-718dbd7a4f75ba6b92177cddd8c176c787c5731b.tar.gz bcm5719-llvm-718dbd7a4f75ba6b92177cddd8c176c787c5731b.zip | |
Fixed __builtin_constant_p return type.
llvm-svn: 116145
Diffstat (limited to 'clang/test/Sema/i-c-e.c')
| -rw-r--r-- | clang/test/Sema/i-c-e.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/i-c-e.c b/clang/test/Sema/i-c-e.c index eb77bbe3b99..1347ee85e0a 100644 --- a/clang/test/Sema/i-c-e.c +++ b/clang/test/Sema/i-c-e.c @@ -9,6 +9,7 @@ int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{inc int expr; char w[__builtin_constant_p(expr) ? expr : 1]; +char v[sizeof(__builtin_constant_p(0)) == sizeof(int) ? 1 : -1]; // __builtin_constant_p as the condition of ?: allows arbitrary foldable // constants to be transmogrified into i-c-e's. |

