summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/delete.cpp
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
commit6bb41d914497171921e0cc5ea4303ed362e00179 (patch)
tree1862f9feb27536ade8778bb5f266078661cc5a91 /clang/test/SemaCXX/delete.cpp
parenta7a90bfdab65e332363ff9a2acd2cdf854a78dc5 (diff)
downloadbcm5719-llvm-6bb41d914497171921e0cc5ea4303ed362e00179.tar.gz
bcm5719-llvm-6bb41d914497171921e0cc5ea4303ed362e00179.zip
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. llvm-svn: 141911
Diffstat (limited to 'clang/test/SemaCXX/delete.cpp')
-rw-r--r--clang/test/SemaCXX/delete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/delete.cpp b/clang/test/SemaCXX/delete.cpp
index 4567888a37b..5824facc507 100644
--- a/clang/test/SemaCXX/delete.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud