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++.robertl
/
eb50.C
blob
8d2c4033f73bd36846faf5953817e33a16c9d5c8
1
// { dg-do run }
2
struct foo { };
3
int f(int a, int b)
4
{
5
if (b == 0)
6
throw foo();
7
return a / b;
8
}
9
int main()
10
{
11
try {
12
f(0, 0);
13
return 1;
14
} catch (foo x) {
15
return 0;
16
}
17
}