xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/Inputs/odr/b.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc struct Y {
2f4a2713aSLionel Sambuc   int m;
3f4a2713aSLionel Sambuc   double f;
4f4a2713aSLionel Sambuc } y2;
5f4a2713aSLionel Sambuc enum E { e2 };
6f4a2713aSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc template<typename T>
8*0a6a1f1dSLionel Sambuc struct F {
9*0a6a1f1dSLionel Sambuc   int n;
10*0a6a1f1dSLionel Sambuc   friend bool operator==(const F &a, const F &b) { return a.n == b.n; }
11*0a6a1f1dSLionel Sambuc };
12*0a6a1f1dSLionel Sambuc 
g()13f4a2713aSLionel Sambuc int g() {
14*0a6a1f1dSLionel Sambuc   return y2.m + e2 + y2.f + (F<int>{0} == F<int>{1});
15f4a2713aSLionel Sambuc }
16