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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
ptrmem1.C
blob
299dc4a05cfb729a97d1810cd41e43c01a8c2f9f
1
// { dg-do run }
2
extern "C" void exit (int);
3
extern "C" void abort (void);
4
struct A { int i; };
5
int main ()
6
{
7
try { throw &A::i; }
8
catch (int A::*p)
9
{
10
if (p == &A::i)
11
exit (0);
12
else
13
abort ();
14
}
15
abort ();
16
}