From 7b318668a3e54d3ba9b40cc435b627c3605f19f3 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 18 Sep 1999 11:23:55 +0000 Subject: [PATCH] * inline1.C: New test. From-SVN: r29495 --- gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog | 4 ++++ gcc/testsuite/g++.old-deja/g++.oliva/inline1.C | 31 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.oliva/inline1.C diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog index 5a5ab8a..0000a9f 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog @@ -1,3 +1,7 @@ +1999-09-18 Alexandre Oliva + + * inline1.C: New test. + 1999-08-25 Alexandre Oliva * thunk1.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/inline1.C b/gcc/testsuite/g++.old-deja/g++.oliva/inline1.C new file mode 100644 index 0000000..01029ff --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/inline1.C @@ -0,0 +1,31 @@ +// Build don't link: + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva +// Derived from GNU lilypond. + +// crash test + +struct foo { + foo(); + foo(const foo&); + ~foo(); +}; + +struct bar { + foo foo_member; + bar(); + bar(const bar&); + // ~bar(); +}; + +struct baz { + void error (bar s); +}; + +void fail() __attribute__((noreturn)); + +void baz::error (bar s) { + fail(); +} -- 2.7.4