blob: a6ba015276b8691cc54f468416ae1fce3e6ddf76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* { dg-do run } */
/* { dg-options "-w -flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis " } */
#include <assert.h>
#include <stdio.h>
int
main ()
{
struct astruct_s
{
_Bool b;
_Bool a;
_Bool c;
_Bool d;
};
struct astruct_s astruct;
printf ("%d %d %d\n", astruct.a, astruct.c, astruct.d);
_Bool *a_ptr = &astruct.a;
struct astruct_s *s_ptr = &astruct;
assert (a_ptr == s_ptr);
}
|