forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ipa-cp.c (gather_caller_stats): Skip thunks. (propagate_constants_topo): Skip aliases. * g++.dg/torture/pr64978.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220557 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
hubicka
committed
Feb 10, 2015
1 parent
caa5e7f
commit 675f181
Showing
4 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* { dg-do compile } */ | ||
class A { | ||
public: | ||
A(int, int); | ||
}; | ||
class B { | ||
public: | ||
void m_fn1(bool, const int *, int &); | ||
unsigned m_fn2(); | ||
}; | ||
namespace { | ||
class C { | ||
B &VTables; | ||
void m_fn3(A, unsigned, const int *, int &); | ||
|
||
public: | ||
int VFTableBuilder_VisitedBases; | ||
B VFTableBuilder_VTables; | ||
C() : VTables(VFTableBuilder_VTables) { | ||
m_fn3(A(0, 0), 0, 0, VFTableBuilder_VisitedBases); | ||
} | ||
}; | ||
} | ||
int a; | ||
void C::m_fn3(A, unsigned, const int *, int &) { | ||
for (;;) | ||
1 ? VTables.m_fn2() : 0; | ||
} | ||
void B::m_fn1(bool, const int *, int &) { C(); } | ||
unsigned B::m_fn2() { m_fn1(0, 0, a); } |