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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
memtmpl1.C
blob
fe0f1d5df690bf87fa724ebcff693ba9bca62307
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template <class T>
4
struct A {
5
template <class U>
6
requires sizeof(T) == 1
7
static void f(U);
8
template <class U>
9
requires sizeof(T) == 2
10
static void f(U);
11
void g()
12
{
13
f(42);
14
}
15
};