summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-47-constructor-0.c
blob: 28d18a54957051745bc84ea211289e7068e0b7b4 (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 -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=nextout -fipa-typelist-struct=arc -o ipa-structreorg-46-static-0.exe " } */

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

int
main ()
{
  struct arc
  {
    _Bool a;
    _Bool nextout;
    _Bool c;
  };
  struct arc an_arc;
  struct another
  {
    _Bool a;
    struct arc d;
    _Bool c;
  };
  struct another an_another = {0, {0, 1}, 1};
}