mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
29 lines
297 B
C++
29 lines
297 B
C++
class Friend1 {
|
|
public:
|
|
void f();
|
|
protected:
|
|
void g();
|
|
private:
|
|
void h();
|
|
};
|
|
|
|
class Friend2 {
|
|
public:
|
|
void f();
|
|
protected:
|
|
void g();
|
|
private:
|
|
void h();
|
|
};
|
|
|
|
void Friend2::f() {
|
|
}
|
|
|
|
void friendFunc() {}
|
|
|
|
class C {
|
|
friend class Friend1;
|
|
friend void Friend2::f();
|
|
friend void friendFunc();
|
|
};
|