25 lines
377 B
C++
Raw Normal View History

2009-06-22 08:08:35 +00:00
// RUN: clang-cc -fsyntax-only -verify %s
typedef int f;
2009-10-14 18:03:49 +00:00
2009-06-22 08:08:35 +00:00
namespace N0 {
struct A {
friend void f();
void g() {
int i = f(1);
}
};
}
namespace N1 {
struct A {
friend void f(A &);
operator int();
void g(A a) {
// ADL should not apply to the lookup of 'f', it refers to the typedef
// above.
int i = f(a);
}
};
}