// RUN: clang %s -fsyntax-only -verify -pedantic-errors

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

// RUN: clang %s -fsyntax-only -verify

int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;}

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

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60331 91177308-0d34-0410-b5e6-96231b3b80d8
