diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-31 05:47:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-31 05:47:19 +0000 |
commit | b73e75cfda58c89e6cb196668409daa3c7e45d7f (patch) | |
tree | a94c6feebc2c5354bd5a5afd45e540d9554ee643 /test/SemaCXX/namespace-alias.cpp | |
parent | 63840b5fc57b426e156d36e5109b7d418b711f7d (diff) | |
download | clang-b73e75cfda58c89e6cb196668409daa3c7e45d7f.tar.gz |
Check in test for namespace aliases+using directives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/namespace-alias.cpp')
-rw-r--r-- | test/SemaCXX/namespace-alias.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaCXX/namespace-alias.cpp b/test/SemaCXX/namespace-alias.cpp index c715c9f97c..d5e423848c 100644 --- a/test/SemaCXX/namespace-alias.cpp +++ b/test/SemaCXX/namespace-alias.cpp @@ -48,3 +48,17 @@ namespace I { int f() { return I::A2::i; } + +namespace J { + namespace A { + namespace B { void func (); } + } + + namespace C = A; + + using namespace C::B; + + void g() { + func(); + } +} |