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


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to