From 5ed99963140dae2b90d7ab37d6835347149dfcaf Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 21 Dec 1999 17:03:24 +0000 Subject: [PATCH] New test From-SVN: r31053 --- gcc/testsuite/g++.old-deja/g++.eh/inline1.C | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.eh/inline1.C diff --git a/gcc/testsuite/g++.old-deja/g++.eh/inline1.C b/gcc/testsuite/g++.old-deja/g++.eh/inline1.C new file mode 100644 index 00000000000..ae03c7a1ea9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.eh/inline1.C @@ -0,0 +1,26 @@ +// Copyright (C) 1999 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 29 Nov 1999 + +// 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; +}