aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/typo.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-04-24 01:30:46 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-04-24 01:30:46 +0000
commitba5f6eced29937e4e4851a2c0980744768413d66 (patch)
tree7c65077ea2d105c3761012d52510063c5ce36530 /test/FixIt/typo.cpp
parent970c618c3f9ce7e010a30587118afc03434cfd99 (diff)
Teach clang -fixit to modify files in-place, or -fixit=suffix to create new
files with the additional suffix in the middle. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/typo.cpp')
-rw-r--r--test/FixIt/typo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/FixIt/typo.cpp b/test/FixIt/typo.cpp
index dc6789fa86..5b9e68bbfd 100644
--- a/test/FixIt/typo.cpp
+++ b/test/FixIt/typo.cpp
@@ -1,5 +1,7 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-// RUN: %clang_cc1 -fsyntax-only -fixit -o - %s | %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ -
+// RUN: cp %s %t
+// RUN: %clang_cc1 -fsyntax-only -fixit -x c++ %t || true
+// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t
namespace std {
template<typename T> class basic_string { // expected-note 2{{'basic_string' declared here}}
public: