[cfe-commits] r38878 - /cfe/cfe/trunk/test/Parser/statements.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:25:26 PDT 2007
Author: sabre
Date: Wed Jul 11 11:25:25 2007
New Revision: 38878
URL: http://llvm.org/viewvc/llvm-project?rev=38878&view=rev
Log:
Check that ?: parses its RHS as 'expression'.
Modified:
cfe/cfe/trunk/test/Parser/statements.c
Modified: cfe/cfe/trunk/test/Parser/statements.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Parser/statements.c?rev=38878&r1=38877&r2=38878&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Parser/statements.c (original)
+++ cfe/cfe/trunk/test/Parser/statements.c Wed Jul 11 11:25:25 2007
@@ -58,3 +58,7 @@
//int A = (struct{ int a;}){ 1}.a;
int A = (int){ 1}.a;
}
+
+int test7(int a, int b) {
+ return a ? a,b : a;
+}
More information about the cfe-commits
mailing list