aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/fn-template6.C
blob: 63b2377bc6e044f8edf685f07fedf32f6cb34a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// P0846R0
// { dg-do compile }
// { dg-options "-std=c++2a" }

template<class>
struct X {
  int first = 0;
};

int
f ()
{
  X<int> x, y;
  bool b = x.first < y.first;
  return b;
}