c++: change -fconcepts to mean C++20 concepts
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / class-deduction1.C
blob7f427d053b8855cee32057d7081c0ab4406f0ca5
1 // { dg-do compile { target c++17_only } }
2 // { dg-options "-fconcepts-ts" }
4 template <class T>
5 concept bool Isint = __is_same_as(T,int);
7 template <class T>
8 struct A
10   int i;
11   A(...);
14 template <Isint I>
15 A(I) -> A<I>;
17 A a(1);
18 A a2(1.0);                      // { dg-error "" }