blob: 5a3f52409486ea577890016f9d1206ea319a8b80 [file] [log] [blame]
Richard Smith2b9e3e32013-10-18 06:05:18 +00001extern struct Y {
2 int n;
3 float f;
4} y1;
5enum E { e1 };
6
7struct X {
8 int n;
9} x1;
10
Richard Smith88126a22014-08-25 02:10:01 +000011template<typename T>
12struct F {
13 int n;
14 friend bool operator==(const F &a, const F &b) { return a.n == b.n; }
15};
16
Richard Smith2b9e3e32013-10-18 06:05:18 +000017int f() {
18 return y1.n + e1 + y1.f + x1.n;
19}