Switch to the canonical pipe-based testing of clang output using
FileCheck.

This avoids copying files around needlessly during test runs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160535 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Tooling/clang-ast-dump.cpp b/test/Tooling/clang-ast-dump.cpp
index 99e550b..3847bc6 100644
--- a/test/Tooling/clang-ast-dump.cpp
+++ b/test/Tooling/clang-ast-dump.cpp
@@ -1,6 +1,4 @@
-// RUN: rm -f %t
-// RUN: clang-ast-dump "%s" -f test_namespace::TheClass::theMethod -- -c > %t 2>&1
-// RUN: FileCheck --input-file=%t %s
+// RUN: clang-ast-dump "%s" -f test_namespace::TheClass::theMethod -- -c 2>&1 | FileCheck %s
 
 // FIXME: Does this run regardless of +Asserts?
 // REQUIRES: asserts