| 1 |
/* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/ |
| 2 |
|
| 3 |
static const struct mount_opts |
| 4 |
{ |
| 5 |
int token; |
| 6 |
int mount_opts; |
| 7 |
int flags; |
| 8 |
} ext4_mount_opts[] = { |
| 9 |
{1, 1, 1} |
| 10 |
}; |
| 11 |
|
| 12 |
int f(void) |
| 13 |
{ |
| 14 |
return ext4_mount_opts[0].token; |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-tree-dump "static const struct mount_opts\n{\n *int token;\n *int mount_opts;\n *int flags;\n} ext4_mount_opts\[\] = {\n *{1, 1, 1}\n};" } } */ |
| 18 |
/* { dg-final { scan-tree-dump "return ext4_mount_opts\[0\]\.token;" } } */ |