diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-01 06:27:38 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-01 06:27:38 +0000 |
commit | 4cfc6fe9ed05af1bfc371bd78ad6945b62419e37 (patch) | |
tree | 2cc099860869683a6f5db63e2e999720a77e4732 | |
parent | 64712f196bffd41fb0552c2643b07a25c3e45082 (diff) |
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60331 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/i-c-e3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/i-c-e3.c b/test/Sema/i-c-e3.c index c371f4a5cc..46b74decef 100644 --- a/test/Sema/i-c-e3.c +++ b/test/Sema/i-c-e3.c @@ -1,3 +1,3 @@ -// RUN: clang %s -fsyntax-only -verify -pedantic-errors +// RUN: clang %s -fsyntax-only -verify -int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{null pointer expression is not an integer constant expression (but is allowed as an extension)}} // expected-note{{C does not permit evaluated commas in an integer constant expression}} +int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} |