diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-09-01 16:37:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-09-01 16:37:17 +0000 |
commit | 828629bd81b08385291f71bee8fa086ae24c2e97 (patch) | |
tree | 123821aafad394396c13b6dbf5bb26069cc1622a | |
parent | afac01d7e76f28d5e5a5c377369cc400919387ee (diff) |
Add test for nothing... i.e., the contents of a USR for using directives
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112716 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Index/usrs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Index/usrs.cpp b/test/Index/usrs.cpp index cacfdf2f56..50d209feba 100644 --- a/test/Index/usrs.cpp +++ b/test/Index/usrs.cpp @@ -59,6 +59,8 @@ namespace foo_alias = foo; using namespace foo; +namespace foo_alias2 = foo; + // RUN: c-index-test -test-load-source-usrs all %s | FileCheck %s // CHECK: usrs.cpp c:@N@foo Extent=[1:11 - 4:2] // CHECK: usrs.cpp c:@N@foo@x Extent=[2:3 - 2:8] @@ -112,3 +114,5 @@ using namespace foo; // CHECK: usrs.cpp c:usrs.cpp@941@F@rez@a Extent=[55:12 - 55:17] // CHECK: usrs.cpp c:usrs.cpp@948@F@rez@b Extent=[55:19 - 55:24] // CHECK: usrs.cpp c:@NA@foo_alias +// CHECK-NOT: foo +// CHECK: usrs.cpp c:@NA@foo_alias2 |