[cfe-commits] r75813 - in /cfe/trunk/test/Index: cxx-operator-overload.cpp resolve-loc.c

Argiris Kirtzidis akyrtzi at gmail.com
Wed Jul 15 11:59:40 PDT 2009


Author: akirtzidis
Date: Wed Jul 15 13:59:40 2009
New Revision: 75813

URL: http://llvm.org/viewvc/llvm-project?rev=75813&view=rev
Log:
Add comments to indicate why RUN lines are below the source code.

Modified:
    cfe/trunk/test/Index/cxx-operator-overload.cpp
    cfe/trunk/test/Index/resolve-loc.c

Modified: cfe/trunk/test/Index/cxx-operator-overload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/cxx-operator-overload.cpp?rev=75813&r1=75812&r2=75813&view=diff

==============================================================================
--- cfe/trunk/test/Index/cxx-operator-overload.cpp (original)
+++ cfe/trunk/test/Index/cxx-operator-overload.cpp Wed Jul 15 13:59:40 2009
@@ -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 @@
 }
 
 // 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,'

Modified: cfe/trunk/test/Index/resolve-loc.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/resolve-loc.c?rev=75813&r1=75812&r2=75813&view=diff

==============================================================================
--- cfe/trunk/test/Index/resolve-loc.c (original)
+++ cfe/trunk/test/Index/resolve-loc.c Wed Jul 15 13:59:40 2009
@@ -1,3 +1,5 @@
+// Run lines are sensitive to line numbers and come below the code.
+
 int top_var;
 
 void top_func_decl(int param1);
@@ -15,18 +17,18 @@
 
 
 // RUN: clang-cc -emit-pch %s -o %t.ast &&
-// RUN: index-test %t.ast -point-at %s:1:8 | grep top_var &&
-// RUN: index-test %t.ast -point-at %s:3:15 | grep top_func_decl &&
-// RUN: index-test %t.ast -point-at %s:3:25 | grep param1 &&
-// RUN: index-test %t.ast -point-at %s:5:17 | grep top_func_def &&
-// RUN: index-test %t.ast -point-at %s:5:23 | grep param2 &&
-// RUN: index-test %t.ast -point-at %s:6:10 | grep local_var1 &&
-// RUN: index-test %t.ast -point-at %s:7:15 | grep for_var &&
-// RUN: index-test %t.ast -point-at %s:7:43 | grep top_func_def &&
-// RUN: index-test %t.ast -point-at %s:7:43 | grep '++for_var' &&
-// RUN: index-test %t.ast -point-at %s:8:9 | grep local_var2 &&
-// RUN: index-test %t.ast -point-at %s:8:30 | grep local_var2 &&
-// RUN: index-test %t.ast -point-at %s:8:30 | grep 'for_var + 1' &&
+// RUN: index-test %t.ast -point-at %s:3:8 | grep top_var &&
+// RUN: index-test %t.ast -point-at %s:5:15 | grep top_func_decl &&
+// RUN: index-test %t.ast -point-at %s:5:25 | grep param1 &&
+// RUN: index-test %t.ast -point-at %s:7:17 | grep top_func_def &&
+// RUN: index-test %t.ast -point-at %s:7:23 | grep param2 &&
+// RUN: index-test %t.ast -point-at %s:8:10 | grep local_var1 &&
+// RUN: index-test %t.ast -point-at %s:9:15 | grep for_var &&
+// RUN: index-test %t.ast -point-at %s:9:43 | grep top_func_def &&
+// RUN: index-test %t.ast -point-at %s:9:43 | grep '++for_var' &&
+// RUN: index-test %t.ast -point-at %s:10:9 | grep local_var2 &&
+// RUN: index-test %t.ast -point-at %s:10:30 | grep local_var2 &&
+// RUN: index-test %t.ast -point-at %s:10:30 | grep 'for_var + 1' &&
 
 // fields test.
-// RUN: index-test %t.ast -point-at %s:13:10 | grep field_var
+// RUN: index-test %t.ast -point-at %s:15:10 | grep field_var





More information about the cfe-commits mailing list