Add a testcase for PR tree-optimization/43695.

2011-02-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR tree-optimization/43695
	* g++.dg/ipa/pr43695.C: New.

From-SVN: r169835
This commit is contained in:
H.J. Lu 2011-02-04 17:23:30 +00:00 committed by H.J. Lu
parent dcde5957ce
commit 4946bd35e9
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/43695
* g++.dg/ipa/pr43695.C: New.
2011-02-04 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/23200

View File

@ -0,0 +1,20 @@
/* { dg-do compile } */
/* { dg-options "-fipa-cp -fipa-cp-clone" } */
extern void baz(int) __attribute__ ((noreturn));
struct S {
~S();
};
__attribute__ ((noreturn, noinline))
void bar(int i)
{
baz(i);
}
void foo()
{
S s;
bar(0);
}