[cfe-commits] r141911 - /cfe/trunk/test/SemaCXX/delete.cpp

Richard Trieu rtrieu at google.com
Thu Oct 13 16:26:59 PDT 2011


Author: rtrieu
Date: Thu Oct 13 18:26:59 2011
New Revision: 141911

URL: http://llvm.org/viewvc/llvm-project?rev=141911&view=rev
Log:
Fix a test case where FileCheck is used to test code corrected by -fixit.
If the code file is not run through the preproccessor to remove comments,
then FileCheck will match the strings within the CHECK commands rendering
the test useless.

Modified:
    cfe/trunk/test/SemaCXX/delete.cpp

Modified: cfe/trunk/test/SemaCXX/delete.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/delete.cpp?rev=141911&r1=141910&r2=141911&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/delete.cpp (original)
+++ cfe/trunk/test/SemaCXX/delete.cpp Thu Oct 13 18:26:59 2011
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
 // RUN: cp %s %t
 // RUN: %clang_cc1 -fixit -x c++ %t
-// RUN: FileCheck -input-file=%t %s
+// RUN: %clang_cc1 -E -o - %t | FileCheck %s
 
 void f(int a[10][20]) {
   // CHECK: delete[] a;





More information about the cfe-commits mailing list