Argyrios Kyrtzidis | 706bbf8 | 2010-10-29 16:12:50 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Argyrios Kyrtzidis | 706bbf8 | 2010-10-29 16:12:50 +0000 | [diff] [blame] | 2 | |
| 3 | namespace A { |
Richard Smith | fc805ca | 2015-07-06 04:43:58 +0000 | [diff] [blame] | 4 | class String; // expected-note {{target of using declaration}} |
Argyrios Kyrtzidis | 706bbf8 | 2010-10-29 16:12:50 +0000 | [diff] [blame] | 5 | }; |
| 6 | |
Richard Smith | fc805ca | 2015-07-06 04:43:58 +0000 | [diff] [blame] | 7 | using A::String; // expected-note {{using declaration}} |
| 8 | class String; // expected-error {{conflicts with target of using declaration}} |
Argyrios Kyrtzidis | 706bbf8 | 2010-10-29 16:12:50 +0000 | [diff] [blame] | 9 | |
| 10 | // rdar://8603569 |
| 11 | union value { |
| 12 | char *String; |
| 13 | }; |