blob: a4a693df2bf1cd8dae893522ab8f35b41747cf97 [file] [log] [blame]
Richard Smith2b9e3e32013-10-18 06:05:18 +00001struct Y {
2 int m;
3 double f;
4} y2;
5enum E { e2 };
6
Richard Smith88126a22014-08-25 02:10:01 +00007template<typename T>
8struct F {
9 int n;
10 friend bool operator==(const F &a, const F &b) { return a.n == b.n; }
11};
12
Richard Smith2b9e3e32013-10-18 06:05:18 +000013int g() {
Richard Smith88126a22014-08-25 02:10:01 +000014 return y2.m + e2 + y2.f + (F<int>{0} == F<int>{1});
Richard Smith2b9e3e32013-10-18 06:05:18 +000015}