20 lines · c
1extern struct Y {2 int n;3 float f;4} y1;5enum E { e1 };6 7struct X {8 int n;9} x1;10 11template<typename T>12struct F {13 int n;14 friend bool operator==(const F &a, const F &b) { return a.n == b.n; }15};16 17int f() {18 return y1.n + e1 + y1.f + x1.n;19}20