aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-12-21 17:03:24 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-12-21 17:03:24 +0000
commit5ed99963140dae2b90d7ab37d6835347149dfcaf (patch)
tree8987ce0a38434b419cf91d906908a910af73b2f1 /gcc
parent367b1cf5cfd8762d9d709a0ab810185cb6379b1c (diff)
downloadgcc-5ed99963140dae2b90d7ab37d6835347149dfcaf.zip
gcc-5ed99963140dae2b90d7ab37d6835347149dfcaf.tar.gz
gcc-5ed99963140dae2b90d7ab37d6835347149dfcaf.tar.bz2
New test
From-SVN: r31053
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/inline1.C26
1 files changed, 26 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 0000000..ae03c7a
--- /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 <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;
+}