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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh28.C
blob
57cab1178a4ca79004f7c56ff2fb41bc3c987f4f
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
#include <typeinfo>
5
6
int fail = 1;
7
8
class X { public: virtual void p() { } };
9
class Y : public X { public: virtual void p() { fail = 0; } };
10
11
main()
12
{
13
try { Y y; throw y; }
14
catch (X& x) { x.p(); }
15
catch (...) { }
16
return fail;
17
}