Douglas Gregor | 8fb280c | 2010-08-31 13:31:19 +0000 | [diff] [blame^] | 1 | // Test is line- and column-sensitive; see below. |
| 2 | |
| 3 | namespace std { |
| 4 | namespace rel_ops { |
| 5 | void f(); |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | namespace std { |
| 10 | void g(); |
| 11 | } |
| 12 | |
| 13 | // FIXME: using directives, namespace aliases |
| 14 | |
| 15 | // RUN: c-index-test -test-load-source all %s | FileCheck %s |
| 16 | // CHECK: load-namespaces.cpp:3:11: Namespace=std:3:11 (Definition) Extent=[3:11 - 7:2] |
| 17 | // CHECK: load-namespaces.cpp:4:13: Namespace=rel_ops:4:13 (Definition) Extent=[4:13 - 6:4] |
| 18 | // CHECK: load-namespaces.cpp:5:10: FunctionDecl=f:5:10 Extent=[5:10 - 5:13] |
| 19 | // CHECK: load-namespaces.cpp:9:11: Namespace=std:9:11 (Definition) Extent=[9:11 - 11:2] |
| 20 | // CHECK: load-namespaces.cpp:10:8: FunctionDecl=g:10:8 Extent=[10:8 - 10:11] |
| 21 | |
| 22 | |