From 0219becc2c40e0cd43515e6015fe833cf2d0cf8f Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Fri, 27 May 2011 16:11:27 +0000 Subject: [PATCH] tree-ssa-pr43411.C: Rename function to be inlined and replace dump search. * g++.dg/tree-ssa-pr43411.C: Rename function to be inlined and replace dump search. From-SVN: r174341 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/tree-ssa/pr43411.C | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a2833207c0..ee518dc55b6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-05-27 Janis Johnson + + * g++.dg/tree-ssa-pr43411.C: Rename function to be inlined and + replace dump search. + 2011-05-27 Eric Botcazou * gnat.dg/bit_packed_array5.ads: Move dg directive to... diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr43411.C b/gcc/testsuite/g++.dg/tree-ssa/pr43411.C index 476e16ad236..411f837cba2 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr43411.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr43411.C @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ -class P { public: virtual int val() { return 123; } }; +/* { dg-options "-O2 -fdump-tree-release_ssa" } */ +class P { public: virtual int function_to_inline() { return 123; } }; class Psub : public P { }; extern int sink1, sink2; @@ -8,12 +8,12 @@ extern int sink1, sink2; void test() { Psub p; P &pRef = p; - sink1 = p.val(); - sink2 = pRef.val(); + sink1 = p.function_to_inline(); + sink2 = pRef.function_to_inline(); } -inline int v(P &p) { return p.val(); } +inline int v(P &p) { return p.function_to_inline(); } void testInlineP() { P p; @@ -25,5 +25,5 @@ void testInlinePsub() { sink1 = v(p); } -// { dg-final { scan-tree-dump-not "OBJ_TYPE_REF" "optimized" { xfail *-*-* } } } -// { dg-final { cleanup-tree-dump "optimized" } } +// { dg-final { scan-tree-dump-not "function_to_inline" "release_ssa" { xfail *-*-* } } } +// { dg-final { cleanup-tree-dump "release_ssa" } }