Commit 0219becc by Janis Johnson Committed by Janis Johnson

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
parent 8950516e
2011-05-27 Janis Johnson <janisjo@codesourcery.com>
* g++.dg/tree-ssa-pr43411.C: Rename function to be inlined and
replace dump search.
2011-05-27 Eric Botcazou <ebotcazou@adacore.com> 2011-05-27 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/bit_packed_array5.ads: Move dg directive to... * gnat.dg/bit_packed_array5.ads: Move dg directive to...
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-options "-O2 -fdump-tree-release_ssa" } */
class P { public: virtual int val() { return 123; } }; class P { public: virtual int function_to_inline() { return 123; } };
class Psub : public P { }; class Psub : public P { };
extern int sink1, sink2; extern int sink1, sink2;
...@@ -8,12 +8,12 @@ extern int sink1, sink2; ...@@ -8,12 +8,12 @@ extern int sink1, sink2;
void test() { void test() {
Psub p; Psub p;
P &pRef = p; P &pRef = p;
sink1 = p.val(); sink1 = p.function_to_inline();
sink2 = pRef.val(); 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() { void testInlineP() {
P p; P p;
...@@ -25,5 +25,5 @@ void testInlinePsub() { ...@@ -25,5 +25,5 @@ void testInlinePsub() {
sink1 = v(p); sink1 = v(p);
} }
// { dg-final { scan-tree-dump-not "OBJ_TYPE_REF" "optimized" { xfail *-*-* } } } // { dg-final { scan-tree-dump-not "function_to_inline" "release_ssa" { xfail *-*-* } } }
// { dg-final { cleanup-tree-dump "optimized" } } // { dg-final { cleanup-tree-dump "release_ssa" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment