summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-heterogeneous-struct-0.c
blob: 166fbccfbcd118e5fda10970905295cedac193f8 (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 { float a; _Bool b; int 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 .real_type a.boolean_type b.integer_type c.. ..  record astruct_s .real_type a.integer_type c.." "type-escape-analysis" } } */