Sign in
gnu
/
gcc
/
14bc1c0e15633ea781d76d0ae4274b2e27d51db5
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
spec7.C
blob: 1945b84aec7103aeb8749555e5dc827b3f08313d [
file
] [
log
] [
blame
]
// Test that we allow simple throw specs on pointers.
void
f
()
throw
()
{
}
void
(*
pf
)()
throw
()
=
f
;
struct
A
{
void
g
()
throw
()
{
}
static
void
(
A
::*
pmf
)()
throw
();
};
void
(
A
::*
A
::
pmf
)()
=
&
A
::
g
;
int
main
()
{
pf
();
A a
;
(
a
.*
A
::
pmf
)();
}