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