New test
From-SVN: r31053
This commit is contained in:
parent
367b1cf5cf
commit
5ed9996314
26
gcc/testsuite/g++.old-deja/g++.eh/inline1.C
Normal file
26
gcc/testsuite/g++.old-deja/g++.eh/inline1.C
Normal file
@ -0,0 +1,26 @@
|
||||
// Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
// Contributed by Nathan Sidwell 29 Nov 1999 <nathan@acm.org>
|
||||
|
||||
// Build don't link:
|
||||
// Special g++ Options: -ansi -pedantic-errors -O2
|
||||
// crash test - XFAIL *-*-*
|
||||
|
||||
struct Foo
|
||||
{
|
||||
inline ~Foo ();
|
||||
};
|
||||
|
||||
inline void Wibble (int) throw ()
|
||||
{
|
||||
}
|
||||
|
||||
inline Foo::~Foo ()
|
||||
{
|
||||
Wibble (6);
|
||||
}
|
||||
|
||||
int ExtendFoos ()
|
||||
{
|
||||
Foo tmp;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user