1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | |
3 | namespace A { |
4 | namespace B { } |
5 | } |
6 | |
7 | using A::B; // expected-error{{using declaration cannot refer to a namespace}} |
8 |
1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | |
3 | namespace A { |
4 | namespace B { } |
5 | } |
6 | |
7 | using A::B; // expected-error{{using declaration cannot refer to a namespace}} |
8 |