mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 02:20:39 +08:00
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:
parent
dcde5957ce
commit
4946bd35e9
@ -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
|
||||
|
20
gcc/testsuite/g++.dg/ipa/pr43695.C
Normal file
20
gcc/testsuite/g++.dg/ipa/pr43695.C
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user