mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 20:19:49 +08:00
* g++.old-deja/g++.eh/tmpl2.C: New test.
From-SVN: r24112
This commit is contained in:
parent
4bd75896d3
commit
658269bda2
@ -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
|
||||
|
33
gcc/testsuite/g++.old-deja/g++.eh/tmpl2.C
Normal file
33
gcc/testsuite/g++.old-deja/g++.eh/tmpl2.C
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user