summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.eh/inline1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.eh/inline1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/inline1.C25
1 files changed, 25 insertions, 0 deletions
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 000000000..e35976757
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.eh/inline1.C
@@ -0,0 +1,25 @@
+// { dg-do assemble }
+// { dg-options "-ansi -pedantic-errors -O2" }
+// Copyright (C) 1999 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 29 Nov 1999 <nathan@acm.org>
+
+
+struct Foo
+{
+ inline ~Foo ();
+};
+
+inline void Wibble (int) throw ()
+{
+}
+
+inline Foo::~Foo ()
+{
+ Wibble (6);
+}
+
+int ExtendFoos ()
+{
+ Foo tmp;
+ return 0;
+}