repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* MAINTAINERS: Add a note that maintainership also includes web
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
explicit-spec2.C
blob
17d48e7c220d1205b66d4bfc7922d835452ad187
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template<typename T>
4
concept bool C() { return __is_class(T); }
5
6
struct X { };
7
8
template<C T> struct S;
9
template<> struct S<X> { void f() { } };
10
11
int main() {
12
S<X> x; x.f();
13
}