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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh36.C
blob
ddf43a87b3c7c14e4bdd6a8ad8df5a71530eed06
1
// Special g++ Options: -fexceptions
2
// excess errors test - XFAIL sparc64-*-elf arm-*-pe
3
4
#include <typeinfo>
5
6
class A {
7
int space;
8
};
9
class B {
10
public:
11
int data;
12
B(int i) : data(i) {
13
}
14
};
15
class D : public A, public B {
16
public:
17
D(int i) : B(i) {
18
}
19
} d(42);
20
21
main() {
22
try {
23
throw &d;
24
} catch (B* b) {
25
if (b->data == 42)
26
return 0;
27
}
28
return 1;
29
}