summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-50-field-write-delete-0.c
blob: a504400aaadfb35dd86e6f564d94f53a19910385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do run } */
/* { dg-options  "-flto -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=delete_me -fipa-typelist-struct=astruct_s " } */

#include <assert.h>
#include <stddef.h>
#include <stdbool.h>

int
main (int argc, char **argv)
{
struct astruct_s { _Bool a; _Bool delete_me; _Bool c;};
struct astruct_s astruct;
astruct.delete_me = false;
return 0;
}