blob: 6318241631623dcb561d4521c66de740418c9fb2 (
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
|
/* { dg-do run } */
/* { dg-options "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis" } */
#include <stddef.h>
#include <assert.h>
int
main ()
{
struct astruct_s
{
_Bool a;
_Bool b;
_Bool c;
};
struct astruct_s astruct;
astruct.a = 1;
astruct.c = 1;
int d = astruct.a * astruct.c;
assert(d == 1);
_Bool *a = &(astruct.a);
_Bool *c = &(astruct.c);
assert (a + 1 == c);
return 0;
}
|