| 1 |
/* Verify pattern initialization for structure type automatic variables with |
| 2 |
tail padding. */ |
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-rtl-expand" } */ |
| 5 |
|
| 6 |
struct test_trailing_hole { |
| 7 |
char *one; |
| 8 |
char *two; |
| 9 |
char *three; |
| 10 |
char four; |
| 11 |
/* "sizeof(unsigned long) - 1" byte padding hole here. */ |
| 12 |
}; |
| 13 |
|
| 14 |
int foo () |
| 15 |
{ |
| 16 |
struct test_trailing_hole var; |
| 17 |
return var.four; |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-rtl-dump-times "0xfffffffffffffffe\\\]\\\) repeated x16" 1 "expand" } } */ |