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
This commit is contained in:
parent
8950516e0b
commit
0219becc2c
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* gnat.dg/bit_packed_array5.ads: Move dg directive to...
|
||||
|
@ -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" } }
|
||||
|
Loading…
Reference in New Issue
Block a user