2010-08-31 21:31:19 +08:00
|
|
|
// Test is line- and column-sensitive; see below.
|
|
|
|
|
|
|
|
namespace std {
|
|
|
|
namespace rel_ops {
|
|
|
|
void f();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace std {
|
|
|
|
void g();
|
|
|
|
}
|
|
|
|
|
2010-09-01 07:48:11 +08:00
|
|
|
namespace std98 = std;
|
|
|
|
namespace std0x = std98;
|
|
|
|
|
2010-09-01 11:07:18 +08:00
|
|
|
using namespace std0x;
|
2010-08-31 21:31:19 +08:00
|
|
|
|
|
|
|
// 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]
|
2010-09-01 08:08:19 +08:00
|
|
|
// CHECK: load-namespaces.cpp:13:11: NamespaceAlias=std98:13:11 Extent=[13:1 - 13:22]
|
2010-09-01 07:48:11 +08:00
|
|
|
// CHECK: load-namespaces.cpp:13:19: NamespaceRef=std:3:11 Extent=[13:19 - 13:22]
|
2010-09-01 08:08:19 +08:00
|
|
|
// CHECK: load-namespaces.cpp:14:11: NamespaceAlias=std0x:14:11 Extent=[14:1 - 14:24]
|
|
|
|
// CHECK: load-namespaces.cpp:14:19: NamespaceRef=std98:13:11 Extent=[14:19 - 14:24]
|
2010-09-01 11:07:18 +08:00
|
|
|
// CHECK: load-namespaces.cpp:16:17: UsingDirective=:16:17 Extent=[16:1 - 16:22]
|
|
|
|
// CHECK: load-namespaces.cpp:16:17: NamespaceRef=std0x:14:11 Extent=[16:17 - 16:22]
|