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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh37.C
blob
a98b5df997f2ac5aab79862f424c8ad8b9262f87
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
}