Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/concepts/pr65552.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 // { dg-options "-std=c++17 -fconcepts" } |
2 | |
3 template<typename T> | |
4 concept bool Concept() { | |
5 return requires () { | |
6 typename T::member_type1; | |
7 typename T::member_type2; | |
8 }; | |
9 } | |
10 | |
11 struct model { | |
12 using member_type1 = int; | |
13 using member_type2 = int; | |
14 }; | |
15 | |
16 template<Concept C> | |
17 struct S {}; | |
18 | |
19 S<model> s; |