blob: ae1b23c324a766eefda29edf33175c0955999f71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* { dg-do run } */
/* { dg-options "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis " } */
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdio.h>
int
main (int argc, char **argv)
{
struct astruct_s
{
_Bool a;
_Bool delete_me;
_Bool c;
};
struct astruct_s astruct;
printf ("%d %d", astruct.a, astruct.c);
astruct.delete_me = false;
return 0;
}
/* { dg-final { scan-ipa-dump "deleting field delete_me 8" "type-escape-analysis" } } */
|