blob: b0fdc15d63ea7ba337491ec6234963a15d8f7d11 (
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 "-flto -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=b -fipa-typelist-struct=astruct_s" } */
#include <assert.h>
int
main ()
{
struct astruct_s
{
_Bool b;
_Bool a;
_Bool c;
_Bool d;
};
struct astruct_s astruct;
_Bool *a_ptr = &astruct.a;
struct astruct_s *astruct_ptr = &astruct;
_Bool test = (_Bool *) astruct_ptr == a_ptr;
char compile_test[test ? 1 : -1];
assert (test);
}
|