[cfe-commits] r38832 - /cfe/cfe/trunk/test/Parser/recovery-1.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:25:01 PDT 2007
Author: sabre
Date: Wed Jul 11 11:25:01 2007
New Revision: 38832
URL: http://llvm.org/viewvc/llvm-project?rev=38832&view=rev
Log:
new testcase
Added:
cfe/cfe/trunk/test/Parser/recovery-1.c (with props)
Added: cfe/cfe/trunk/test/Parser/recovery-1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Parser/recovery-1.c?rev=38832&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Parser/recovery-1.c (added)
+++ cfe/cfe/trunk/test/Parser/recovery-1.c Wed Jul 11 11:25:01 2007
@@ -0,0 +1,7 @@
+// RUN: clang -fsyntax-only -fno-caret-diagnostics %s 2>&1 | grep error | wc -l | grep 2 &&
+// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
+
+char ((((*X x ] )))); // two errors (start pos and end pos).
+
+; // pedantic warning.
+
Propchange: cfe/cfe/trunk/test/Parser/recovery-1.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Parser/recovery-1.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list