mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 00:40:33 -05:00
24 lines
379 B
C++
24 lines
379 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
typedef int f;
|
|
|
|
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);
|
|
}
|
|
};
|
|
}
|