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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb66.C
blob
3088593656e1901c52f826ebc004477462c05e02
1
// { dg-do run }
2
#include <cassert>
3
#include <iostream>
4
5
int bar ()
6
{
7
throw 100;
8
}
9
10
int main ()
11
{
12
int i = 0;
13
try
14
{
15
i = bar ();
16
}
17
catch (...)
18
{
19
}
20
21
// std::cout << "i = " << i << std::endl;
22
assert (i == 0) ;
23
}
24
25
26
27