diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 00:06:46 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 00:06:46 +0000 |
commit | 3e8efd9801889ee46c5c3e3a4e745446fd30b752 (patch) | |
tree | 4727d2d30c20db06fff5c209bcf56ddf07450423 /test/Index/cxx-operator-overload.cpp | |
parent | 57ea6bee79cc60ba20c7886b453f40f380dce1b1 (diff) |
Use temporary output to avoid running index-test with the same commands multiple times.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/cxx-operator-overload.cpp')
-rw-r--r-- | test/Index/cxx-operator-overload.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/Index/cxx-operator-overload.cpp b/test/Index/cxx-operator-overload.cpp index 935f661cce..ffea76662d 100644 --- a/test/Index/cxx-operator-overload.cpp +++ b/test/Index/cxx-operator-overload.cpp @@ -14,11 +14,14 @@ Cls Cls::operator +(const Cls &RHS) { } // RUN: clang-cc -emit-pch %s -o %t.ast && -// RUN: index-test %t.ast -point-at %s:10:17 -print-decls | count 2 && -// RUN: index-test %t.ast -point-at %s:10:17 -print-decls | grep ':5:9,' && -// RUN: index-test %t.ast -point-at %s:10:17 -print-decls | grep ':13:10,' && + +// RUN: index-test %t.ast -point-at %s:10:17 -print-decls > %t && +// RUN: cat %t | count 2 && +// RUN: grep ':5:9,' %t && +// RUN: grep ':13:10,' %t && // Yep, we can show references of '+' plus signs that are overloaded, w00t! -// RUN: index-test %t.ast -point-at %s:5:15 -print-refs | count 2 && -// RUN: index-test %t.ast -point-at %s:5:15 -print-refs | grep ':10:17,' && -// RUN: index-test %t.ast -point-at %s:5:15 -print-refs | grep ':10:22,' +// RUN: index-test %t.ast -point-at %s:5:15 -print-refs > %t && +// RUN: cat %t | count 2 && +// RUN: grep ':10:17,' %t && +// RUN: grep ':10:22,' %t |