* inline1.C: New test.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Sat, 18 Sep 1999 11:23:55 +0000 (11:23 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 18 Sep 1999 11:23:55 +0000 (11:23 +0000)
From-SVN: r29495

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

index 5a5ab8a48ee88280356a850e04148464a2058965..0000a9f678068afbc4e8e07e703569037d259221 100644 (file)
@@ -1,3 +1,7 @@
+1999-09-18  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * inline1.C: New test.
+
 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * 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 (file)
index 0000000..01029ff
--- /dev/null
@@ -0,0 +1,31 @@
+// Build don't link:
+
+// Copyright (C) 1999 Free Software Foundation
+
+// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+// 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();
+}