comparison gcc/testsuite/g++.dg/concepts/class3.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 // { dg-options "-std=c++17 -fconcepts" }
2
3 template<typename T>
4 concept bool C() { return __is_class(T); }
5
6 // Check class redeclaration with alternative spellings.
7 template<typename T> requires C<T>() struct S;
8 template<C T> struct S { };
9
10 struct X { };
11
12 // S<X> sx;
13
14 int main() { }