]> granicus.if.org Git - clang/commitdiff
Fix a test case where FileCheck is used to test code corrected by -fixit.
authorRichard Trieu <rtrieu@google.com>
Thu, 13 Oct 2011 23:26:59 +0000 (23:26 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 13 Oct 2011 23:26:59 +0000 (23:26 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141911 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/delete.cpp

index 4567888a37b12faacea59f821f3cd56269246953..5824facc507b156a714d798ed5c1614c248791ed 100644 (file)
@@ -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;