* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / memtmpl1.C
blobfe0f1d5df690bf87fa724ebcff693ba9bca62307
1 // { dg-options "-std=c++17 -fconcepts" }
3 template <class T>
4 struct A {
5   template <class U>
6   requires sizeof(T) == 1
7     static void f(U);
8   template <class U>
9   requires sizeof(T) == 2
10     static void f(U);
11   void g()
12   {
13     f(42);
14   }