From: Richard Trieu Date: Thu, 13 Oct 2011 23:26:59 +0000 (+0000) Subject: Fix a test case where FileCheck is used to test code corrected by -fixit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=133ca80b6b7451bf0af1bed7ef6f3928a0a1d5a3;p=clang 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 --- 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;