1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
21 lines
456 B
C++
21 lines
456 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
void f1();
|
|
|
|
struct X {
|
|
void f2();
|
|
};
|
|
|
|
struct Y {
|
|
friend void ::f1() { } // expected-error{{friend function definition cannot be qualified with '::'}}
|
|
friend void X::f2() { } // expected-error{{friend function definition cannot be qualified with 'X::'}}
|
|
};
|
|
|
|
void local() {
|
|
void f();
|
|
|
|
struct Local {
|
|
friend void f() { } // expected-error{{friend function cannot be defined in a local class}}
|
|
};
|
|
}
|