OSDN Git Service

New test
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Dec 1999 17:03:24 +0000 (17:03 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Dec 1999 17:03:24 +0000 (17:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31053 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.eh/inline1.C [new file with mode: 0644]

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 (file)
index 0000000..ae03c7a
--- /dev/null
@@ -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;
+}