From: Anders Carlsson Date: Mon, 1 Dec 2008 06:27:38 +0000 (+0000) Subject: Fix test. (0 && (a(),1)) is a valid I-C-E according to C99. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cfc6fe9ed05af1bfc371bd78ad6945b62419e37;p=clang 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 --- 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;}