pass58-frag.cxx: New test for heisenbug 19319.
authorFrank Ch. Eigler <fche@elastic.org>
Fri, 23 Sep 2005 21:35:17 +0000 (21:35 +0000)
committerFrank Ch. Eigler <fche@gcc.gnu.org>
Fri, 23 Sep 2005 21:35:17 +0000 (21:35 +0000)
2005-09-23  Frank Ch. Eigler  <fche@elastic.org>

* testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319.

From-SVN: r104587

libmudflap/ChangeLog
libmudflap/testsuite/libmudflap.c++/pass58-frag.cxx [new file with mode: 0644]

index 537c260..8e39874 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
+
+       * testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319.
+
 2005-09-23  Tom Tromey  <tromey@redhat.com>
 
        * aclocal.m4, configure: Rebuilt.
diff --git a/libmudflap/testsuite/libmudflap.c++/pass58-frag.cxx b/libmudflap/testsuite/libmudflap.c++/pass58-frag.cxx
new file mode 100644 (file)
index 0000000..96da05f
--- /dev/null
@@ -0,0 +1,12 @@
+// PR 19319
+struct k {
+  int data;
+  k(int j): data(j) {}
+};
+k make_k () { return k(1); }
+
+int main ()
+{
+  k foo = make_k ();
+  return 0;
+}