[cfe-commits] r39688 - in /cfe/cfe/trunk/test/Parser: argument_redef.c recovery-1.c
bwendlin at cs.uiuc.edu
bwendlin at cs.uiuc.edu
Wed Jul 11 09:47:11 PDT 2007
Author: bwendlin
Date: Wed Jul 11 11:47:10 2007
New Revision: 39688
URL: http://llvm.org/viewvc/llvm-project?rev=39688&view=rev
Log:
Submitted by: Bill Wendling
Reviewed by: Chris Lattner
Split up lines to have only one expected output per line. Restored some
checks.
Modified:
cfe/cfe/trunk/test/Parser/argument_redef.c
cfe/cfe/trunk/test/Parser/recovery-1.c
Modified: cfe/cfe/trunk/test/Parser/argument_redef.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Parser/argument_redef.c?rev=39688&r1=39687&r2=39688&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Parser/argument_redef.c (original)
+++ cfe/cfe/trunk/test/Parser/argument_redef.c Wed Jul 11 11:47:10 2007
@@ -1,5 +1,6 @@
/* RUN: clang -parse-ast-check %s
*/
-int foo(int A) { int A; } /* expected-error {{redefinition of 'A'}} \
- expected-error {{previous definition is here}} */
+int foo(int A) { /* expected-error {{previous definition is here}} */
+ int A; /* expected-error {{redefinition of 'A'}} */
+}
Modified: cfe/cfe/trunk/test/Parser/recovery-1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Parser/recovery-1.c?rev=39688&r1=39687&r2=39688&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Parser/recovery-1.c (original)
+++ cfe/cfe/trunk/test/Parser/recovery-1.c Wed Jul 11 11:47:10 2007
@@ -1,6 +1,7 @@
+// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
// RUN: clang -parse-ast-check %s
-char ((((*X x ] )))); /* expected-error {{expected ')'}} \
- expected-error {{to match this '('}} */
+char ((((*X x ] /* expected-error {{expected ')'}} */
+ )))); /* expected-error {{to match this '('}} */
; // expected-warning {{ISO C does not allow an extra ';' outside of a function}}
More information about the cfe-commits
mailing list