[cfe-commits] r112598 - /cfe/trunk/test/Index/load-namespaces.cpp
Douglas Gregor
dgregor at apple.com
Tue Aug 31 06:31:20 PDT 2010
Author: dgregor
Date: Tue Aug 31 08:31:19 2010
New Revision: 112598
URL: http://llvm.org/viewvc/llvm-project?rev=112598&view=rev
Log:
Add a simple test for indexing namespaces
Added:
cfe/trunk/test/Index/load-namespaces.cpp (with props)
Added: cfe/trunk/test/Index/load-namespaces.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/load-namespaces.cpp?rev=112598&view=auto
==============================================================================
--- cfe/trunk/test/Index/load-namespaces.cpp (added)
+++ cfe/trunk/test/Index/load-namespaces.cpp Tue Aug 31 08:31:19 2010
@@ -0,0 +1,22 @@
+// Test is line- and column-sensitive; see below.
+
+namespace std {
+ namespace rel_ops {
+ void f();
+ }
+}
+
+namespace std {
+ void g();
+}
+
+// FIXME: using directives, namespace aliases
+
+// RUN: c-index-test -test-load-source all %s | FileCheck %s
+// CHECK: load-namespaces.cpp:3:11: Namespace=std:3:11 (Definition) Extent=[3:11 - 7:2]
+// CHECK: load-namespaces.cpp:4:13: Namespace=rel_ops:4:13 (Definition) Extent=[4:13 - 6:4]
+// CHECK: load-namespaces.cpp:5:10: FunctionDecl=f:5:10 Extent=[5:10 - 5:13]
+// CHECK: load-namespaces.cpp:9:11: Namespace=std:9:11 (Definition) Extent=[9:11 - 11:2]
+// CHECK: load-namespaces.cpp:10:8: FunctionDecl=g:10:8 Extent=[10:8 - 10:11]
+
+
Propchange: cfe/trunk/test/Index/load-namespaces.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/trunk/test/Index/load-namespaces.cpp
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: cfe/trunk/test/Index/load-namespaces.cpp
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the cfe-commits
mailing list