summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/concepts/memtmpl1.C
blob: fe0f1d5df690bf87fa724ebcff693ba9bca62307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-std=c++17 -fconcepts" }

template <class T>
struct A {
  template <class U>
  requires sizeof(T) == 1
    static void f(U);
  template <class U>
  requires sizeof(T) == 2
    static void f(U);
  void g()
  {
    f(42);
  }
};