xref: /aosp_15_r20/external/clang/test/SemaCXX/lookup-member.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 namespace A {
4   class String; // expected-note {{target of using declaration}}
5 };
6 
7 using A::String; // expected-note {{using declaration}}
8 class String; // expected-error {{conflicts with target of using declaration}}
9 
10 // rdar://8603569
11 union value {
12 char *String;
13 };
14