blob: c320deb534374f66f819206291cfed3eba114f33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do run } */
/* { dg-options "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis -Wno-dfa" } */
int
main ()
{
struct astruct_s
{
_Bool a;
_Bool b;
_Bool c;
};
struct astruct_s astruct;
astruct.a = astruct.c;
astruct.c = astruct.a;
return 0;
}
/// { dg-final { scan-ipa-dump "astruct_s.b may be deleted" "type-escape-analysis" } } */
|