forked from OSchip/llvm-project
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
llvm-svn: 60331
This commit is contained in:
parent
4da78e3774
commit
0309d904f7
|
@ -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;}
|
||||
|
|
Loading…
Reference in New Issue