1 // RUN: clang-cc -fsyntax-only -verify %s 2 // XFAIL 3 4 // FIXME: This part is here to demonstrate the failure in looking up 'f', it can 5 // be removed once the whole test passes. 6 typedef int f; 7 namespace N0 { 8 struct A { 9 friend void f(); 10 void g() { 11 int i = f(1); 12 } 13 }; 14 } 15 16 namespace N1 { 17 struct A { 18 friend void f(A &); 19 operator int(); 20 void g(A a) { 21 // ADL should not apply to the lookup of 'f', it refers to the typedef 22 // above. 23 int i = f(a); 24 } 25 }; 26 } 27