| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fipa-cp -fipa-cp-clone" } */ |
| 3 |
|
| 4 |
extern void baz(int) __attribute__ ((noreturn)); |
| 5 |
|
| 6 |
struct S { |
| 7 |
~S(); |
| 8 |
}; |
| 9 |
|
| 10 |
__attribute__ ((noreturn, noinline)) |
| 11 |
void bar(int i) |
| 12 |
{ |
| 13 |
baz(i); |
| 14 |
} |
| 15 |
|
| 16 |
void foo() |
| 17 |
{ |
| 18 |
S s; |
| 19 |
bar(0); |
| 20 |
} |