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 | 851b208a205ec1e6c2c6a6cc421d3e6412ab5841 (patch) | |
tree | 1febfc72bf9683fcff74efc685ebf1886c1c19ed /clang/test/Index/cxx-operator-overload.cpp | |
parent | a8cf0beeef6fdf2f66ec3a0163ccb641181feaba (diff) | |
download | bcm5719-llvm-851b208a205ec1e6c2c6a6cc421d3e6412ab5841.tar.gz bcm5719-llvm-851b208a205ec1e6c2c6a6cc421d3e6412ab5841.zip |
Use temporary output to avoid running index-test with the same commands multiple times.
llvm-svn: 76513
Diffstat (limited to 'clang/test/Index/cxx-operator-overload.cpp')
-rw-r--r-- | clang/test/Index/cxx-operator-overload.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/clang/test/Index/cxx-operator-overload.cpp b/clang/test/Index/cxx-operator-overload.cpp index 935f661cce9..ffea76662da 100644 --- a/clang/test/Index/cxx-operator-overload.cpp +++ b/clang/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 |