[cfe-commits] r60331 - /cfe/trunk/test/Sema/i-c-e3.c
Anders Carlsson
andersca at mac.com
Sun Nov 30 22:27:38 PST 2008
Author: andersca
Date: Mon Dec 1 00:27:38 2008
New Revision: 60331
URL: http://llvm.org/viewvc/llvm-project?rev=60331&view=rev
Log:
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
Modified:
cfe/trunk/test/Sema/i-c-e3.c
Modified: cfe/trunk/test/Sema/i-c-e3.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/i-c-e3.c?rev=60331&r1=60330&r2=60331&view=diff
==============================================================================
--- cfe/trunk/test/Sema/i-c-e3.c (original)
+++ cfe/trunk/test/Sema/i-c-e3.c Mon Dec 1 00:27:38 2008
@@ -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;}
More information about the cfe-commits
mailing list