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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type18.C
blob
a018c9403972fede454d4201efb36699a2cfe021
1
// { dg-do compile { target c++17 } }
2
3
template<typename T>
4
struct S;
5
6
template<bool IsNoexcept>
7
struct S<void(*)() noexcept(IsNoexcept)> {
8
S() {}
9
};
10
11
void f() {}
12
13
int main() {
14
S<decltype(&f)> {};
15
}