Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.

llvm-svn: 60331
This commit is contained in:
Anders Carlsson 2008-12-01 06:27:38 +00:00
parent 4da78e3774
commit 0309d904f7
1 changed files with 2 additions and 2 deletions

View File

@ -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;}