| 1 |
// { dg-options "-O2 -Os -fdump-tree-dse-details -std=c++11 --param max-inline-insns-size=1" } |
| 2 |
|
| 3 |
|
| 4 |
class C |
| 5 |
{ |
| 6 |
char a[7]{}; |
| 7 |
int b{}; |
| 8 |
}; |
| 9 |
|
| 10 |
C slow() |
| 11 |
{ |
| 12 |
return {}; |
| 13 |
} |
| 14 |
|
| 15 |
|
| 16 |
// We want to match enough here to capture that we deleted an empty |
| 17 |
// constructor store |
| 18 |
// mips will expand to loop to clear because CLEAR_RATIO. |
| 19 |
// { dg-final { scan-tree-dump-not ".*\.a = {}" "dse1" { xfail { mips*-*-* } } } } |
| 20 |
// { dg-final { scan-tree-dump-not ".*\.b = 0" "dse1" { xfail { mips*-*-* } } } } |