1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 struct x
{}; // expected-note {{candidate found by name lookup is 'A::x'}}
5 int x
; // expected-note {{candidate found by name lookup is 'A::x'}}
7 struct y
{}; // expected-note {{type declaration hidden}}
14 struct x
{}; // expected-note {{candidate found by name lookup is 'B::x'}}
15 float x
; // expected-note {{candidate found by name lookup is 'B::x'}}
17 float y
; // expected-note {{declaration hides type}}
28 struct AB::x foo
; // expected-error {{reference to 'x' is ambiguous}}
29 int i
= AB::x
; // expected-error {{reference to 'x' is ambiguous}}
32 float f
= AB::y
; // expected-error {{a type named 'y' is hidden by a declaration in a different namespace}}