OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh37.C
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
#include <typeinfo>
5
6
class B {
7
public:
8
int data;
9
B(int i) : data(i) {
10
}
11
} b(42);
12
13
main() {
14
try {
15
throw &b;
16
} catch (B* b) {
17
if (b->data == 42)
18
return 0;
19
}
20
return 1;
21
}