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
* arm.c (FL_WBUF): Define.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
spec7.C
blob
2ef88a2490063f1cf187b954cdf038a9de57a629
1
// { dg-do run }
2
// Test that we allow simple throw specs on pointers.
3
4
void f() throw () { }
5
void (*pf)() throw () = f;
6
7
struct A
8
{
9
void g() throw () { }
10
static void (A::*pmf)() throw ();
11
};
12
13
void (A::* A::pmf)() = &A::g;
14
15
int main()
16
{
17
pf ();
18
A a;
19
(a.*A::pmf)();
20
}