summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-pr67692.C
blob: 139ecd6d798577ab4ba973398a40c1c864f74e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile { target c++2a } }

template<class T>
bool f(T x) {
  return requires(T x) {
    ++x;
  };
}

int main() {
  f(3);
  return 0;
}