* g++.dg/opt/placeholder1.C: New test.
authorRichard Sandiford <rsandifo@redhat.com>
Mon, 21 Jun 2004 06:32:29 +0000 (06:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 21 Jun 2004 06:32:29 +0000 (06:32 +0000)
From-SVN: r83427

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/placeholder1.C [new file with mode: 0644]

index 78829ebe0d060829d970ec7bdafdcf936e02db93..de97d53f6b8274672b1cab1c7bb7d2d7bfed0454 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-21  Richard Sandiford  <rsandifo@redhat.com>
+
+       * g++.dg/opt/placeholder1.C: New test.
+
 2004-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.dg/compat/struct-complex-1_x.c: Add dummy symbol.
diff --git a/gcc/testsuite/g++.dg/opt/placeholder1.C b/gcc/testsuite/g++.dg/opt/placeholder1.C
new file mode 100644 (file)
index 0000000..a1c9842
--- /dev/null
@@ -0,0 +1,10 @@
+// PR rtl-optimization/15159
+// { dg-options "-O2" }
+struct S { S (); };
+struct P { P (S *); };
+void foo (const P &);
+void bar ()
+{
+  P p = new S;
+  foo (p);
+}