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-type9.C
blob
c965d9e4b1470efa68e2b2b30c83043bf3047457
1
// Test for PMF template args.
2
// { dg-do compile { target c++17 } }
3
4
struct A
5
{
6
void f() noexcept;
7
void g();
8
};
9
10
template <void (A::*)()> struct B { };
11
template <void (A::*)() noexcept> struct C { };
12
13
B<&A::f> b1;
14
B<&A::g> b2;
15
16
C<&A::f> c1;
17
C<&A::g> c2; // { dg-error "" }