Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Anders Carlsson | f67606a | 2009-03-28 04:07:16 +0000 | [diff] [blame] | 2 | |
Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame^] | 3 | namespace A = B; // expected-error{{namespace name}} |
Anders Carlsson | f67606a | 2009-03-28 04:07:16 +0000 | [diff] [blame] | 4 | |
| 5 | namespace A = !; // expected-error {{expected namespace name}} |
Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame^] | 6 | namespace A = A::!; // expected-error {{expected namespace name}} \ |
| 7 | // expected-error{{use of undeclared identifier 'A'}} |
Anders Carlsson | f67606a | 2009-03-28 04:07:16 +0000 | [diff] [blame] | 8 | |
| 9 | |