blob: 2f7ab7d892761bb23bd215866bed8f67e9725a98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do run } */
/* { dg-options "-flto -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=b -fipa-typelist-struct=astruct_s" } */
#include <stddef.h>
#include <assert.h>
int
main ()
{
struct astruct_s
{
_Bool a;
_Bool b;
_Bool c;
};
struct astruct_s astruct;
int d = astruct.c * 2;
_Bool *a = &(astruct.a);
_Bool *c = a + 1;
assert (*c == 0);
return 0;
}
|