diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-15 18:59:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-15 18:59:40 +0000 |
commit | ed53caebdaa47e3acbd4b56d7bdde84297a2894a (patch) | |
tree | a499a5b927f6cbbd241b001cab4fd9d8a85d2f67 /clang/test/Index/cxx-operator-overload.cpp | |
parent | 8206de760b35a811f74967f99ec5d6d9aeafee63 (diff) | |
download | bcm5719-llvm-ed53caebdaa47e3acbd4b56d7bdde84297a2894a.tar.gz bcm5719-llvm-ed53caebdaa47e3acbd4b56d7bdde84297a2894a.zip |
Add comments to indicate why RUN lines are below the source code.
llvm-svn: 75813
Diffstat (limited to 'clang/test/Index/cxx-operator-overload.cpp')
-rw-r--r-- | clang/test/Index/cxx-operator-overload.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/clang/test/Index/cxx-operator-overload.cpp b/clang/test/Index/cxx-operator-overload.cpp index fe8851a6a22..935f661cce9 100644 --- a/clang/test/Index/cxx-operator-overload.cpp +++ b/clang/test/Index/cxx-operator-overload.cpp @@ -1,3 +1,5 @@ +// Run lines are sensitive to line numbers and come below the code. + class Cls { public: Cls operator +(const Cls &RHS); @@ -12,11 +14,11 @@ Cls Cls::operator +(const Cls &RHS) { } // RUN: clang-cc -emit-pch %s -o %t.ast && -// RUN: index-test %t.ast -point-at %s:8:17 -print-decls | count 2 && -// RUN: index-test %t.ast -point-at %s:8:17 -print-decls | grep ':3:9,' && -// RUN: index-test %t.ast -point-at %s:8:17 -print-decls | grep ':11:10,' && +// 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,' && // Yep, we can show references of '+' plus signs that are overloaded, w00t! -// RUN: index-test %t.ast -point-at %s:3:15 -print-refs | count 2 && -// RUN: index-test %t.ast -point-at %s:3:15 -print-refs | grep ':8:17,' && -// RUN: index-test %t.ast -point-at %s:3:15 -print-refs | grep ':8:22,' +// 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,' |