summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-10-13 23:26:59 +0000
committerRichard Trieu <rtrieu@google.com>2011-10-13 23:26:59 +0000
commit133ca80b6b7451bf0af1bed7ef6f3928a0a1d5a3 (patch)
tree5663cdab61f7778fe40f1f4c457e4bf6fff022e9
parent946967806a449488a91d74e2693295a2413a2835 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141911 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaCXX/delete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/delete.cpp b/test/SemaCXX/delete.cpp
index 4567888a37..5824facc50 100644
--- a/test/SemaCXX/delete.cpp
+++ b/test/SemaCXX/delete.cpp
@@ -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;