From: Alexandre Oliva Date: Sat, 18 Sep 1999 11:23:55 +0000 (+0000) Subject: * inline1.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b318668a3e54d3ba9b40cc435b627c3605f19f3;p=gcc.git * inline1.C: New test. From-SVN: r29495 --- diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog index 5a5ab8a48ee..0000a9f6780 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 00000000000..01029fffd64 --- /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(); +}