aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-requires40.C
blob: 918bab410f30e1e6a26dc788809fb26668a21e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/118060
// { dg-do compile { target c++20 } }

int* f(int);

template<class T>
struct A {
  template<class U> requires requires (U u) { *f(u); }
  A(T, U);
};

A a{0, 0};