• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 // rdar4641403
4 namespace N {
5   struct X { // expected-note{{candidate found by name lookup}}
6     float b;
7   };
8 }
9 
10 using namespace N;
11 
12 typedef struct {
13   int a;
14 } X; // expected-note{{candidate found by name lookup}}
15 
16 
17 struct Y { };
Y(int)18 void Y(int) { }
19 
f()20 void f() {
21   X *x; // expected-error{{reference to 'X' is ambiguous}}
22   Y(1); // okay
23 }
24 
25