/* { dg-do run } */ /* { dg-options "-flto -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=b -fipa-typelist-struct=astruct_s" } */ #include #include #include int main (int argc, char **argv) { struct astruct_s { _Bool a; _Bool b; _Bool c; _Bool d; }; struct astruct_s a[2]; struct bstruct_s { _Bool a; _Bool c; _Bool d; }; struct astruct_s *a_0 = &(a[0]); struct astruct_s *a_1 = a_0 + argc; struct bstruct_s *b_0 = (struct bstruct_s *) a_0; struct bstruct_s *b_1 = b_0 + argc; assert ((struct bstruct_s *) a_1 == b_1); }