summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-03-new-type-0.c
blob: c79bc41e1f831a73e03b870104e790448e01eee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do link } */
/* { dg-options  "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis -fprint-access-analysis " } */

#include <stdio.h>

struct astruct_s { _Bool a; _Bool b; _Bool c;};
struct astruct_s astruct;


int
main ()
{
	printf("%d\n", astruct.a);
	printf("%d\n", astruct.c);
}

/* { dg-final { scan-ipa-dump " record astruct_s .boolean_type a;boolean_type b;boolean_type c;. ..  record astruct_s .boolean_type a;boolean_type c;." "type-escape-analysis" } } */