]> granicus.if.org Git - clang/commitdiff
[clang] Cleanup fixit.c
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 9 Jun 2017 22:20:52 +0000 (22:20 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 9 Jun 2017 22:20:52 +0000 (22:20 +0000)
This diff removes temporary file t2 in fixit.c and updates the test command accordingly.
NFC.

Test plan:
make check-all

Differential revision: https://reviews.llvm.org/D34066

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

test/FixIt/fixit.c

index 6443fe53c2a1ddf6c7de4d00fc6ec81dbcfc5c01..a46558c7fb0b5232d602d9188f6ac734b29a4fbc 100644 (file)
@@ -1,9 +1,8 @@
 // RUN: %clang_cc1 -pedantic -Wunused-label -verify -x c %s
 // RUN: cp %s %t
 // RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
-// RUN: grep -v CHECK %t > %t2
 // RUN: %clang_cc1 -pedantic -Wunused-label -Werror -x c %t
-// RUN: FileCheck -input-file=%t2 %t
+// RUN: grep -v CHECK %t | FileCheck %t
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the