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++.eh
/
tmpl2.C
blob
dd2801d26b3ca57dea8bff78c7daca0ba924c239
1
// { dg-do assemble }
2
// { dg-options "-O" }
3
4
// Posted by H. J. Lu <hjl@lucon.org>
5
6
template<class T>
7
class FixSeq
8
{
9
public:
10
void append(const T&);
11
};
12
class foo
13
{
14
public:
15
void setupIR();
16
};
17
typedef FixSeq<foo *> bar;
18
extern void dummy (foo *);
19
void *
20
foobar (bar &x, foo *p)
21
{
22
try
23
{
24
p -> setupIR();
25
}
26
catch(...)
27
{
28
dummy (p);
29
}
30
x.append(p);
31
return p;
32
}