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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
req20.C
blob
38ade5607531670cd14a93ab535a015f1639150d
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template <class T> concept bool C = true;
4
5
template <class T>
6
requires C<typename T::foo>
7
void f(T t) { }
8
9
void f(...);
10
11
template <class T>
12
requires C<T>
13
void g(T t) { }
14
15
int main()
16
{
17
f(42);
18
g(42);
19
}
20