blob: 52dc67589cc2384dace8e543503fb666c17b1bb8 (
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
25
26
27
|
/* { dg-do run } */
/* { dg-options "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis " } */
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
int
main ()
{
struct astruct_s
{
_Bool a;
_Bool b;
_Bool c;
};
struct astruct_s an_arc;
struct another
{
_Bool a;
struct astruct_s d;
_Bool c;
};
struct another an_another = {0, {0, 1}, 1};
struct astruct_s a = an_another.d;
printf ("%d %d %d %d %d", an_another.a, &a, a.a, a.c, an_another.c);
}
|