* stkalign.C: New test.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Wed, 19 Apr 2000 11:17:39 +0000 (11:17 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 19 Apr 2000 11:17:39 +0000 (11:17 +0000)
From-SVN: r33253

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

index 2d71605..b6e486f 100644 (file)
@@ -1,3 +1,7 @@
+2000-04-19  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * stkalign.C: New test.
+
 1999-12-22  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * nameret2.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C b/gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C
new file mode 100644 (file)
index 0000000..fc2cea6
--- /dev/null
@@ -0,0 +1,19 @@
+// Build don't link:
+
+// Copyright (C) 2000 Free Software Foundation
+
+// by Alexandre Oliva <aoliva@cygnus.com>
+// distilled from libg++'s Fix.cc
+
+// crash test - XFAIL i*86-*-*
+
+struct Integer {
+  ~Integer () {}
+};
+
+void foo (const Integer& y);
+Integer bar (const Integer& x);
+
+void show (const Integer& x) {
+  foo (bar (x));
+}