* g++.old-deja/g++.eh/tmpl2.C: New test.

From-SVN: r24112
This commit is contained in:
Alexandre Oliva 1998-12-05 22:37:32 +00:00 committed by Alexandre Oliva
parent 4bd75896d3
commit 658269bda2
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,7 @@
1998-12-06 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.eh/tmpl2.C: New test.
1998-12-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.other/using5.C: usified using[567].C here

View File

@ -0,0 +1,33 @@
// Build don't link:
// Special g++ flags: -O
// crash test - XFAIL i*86-*-linux*
// Posted by H. J. Lu <hjl@lucon.org>
template<class T>
class FixSeq
{
public:
void append(const T&);
};
class foo
{
public:
void setupIR();
};
typedef FixSeq<foo *> bar;
extern void dummy (foo *);
void *
foobar (bar &x, foo *p)
{
try
{
p -> setupIR();
}
catch(...)
{
dummy (p);
}
x.append(p);
return p;
}