summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/i-c-e3.c
blob: c371f4a5cce58bd266217815d2f2713a1da9f50b (plain)
1
2
3
// 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}}
OpenPOWER on IntegriCloud