summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/m68k/pr52076-2.c
blob: 30c6991839cce1157d49114d7856da506cf92bc0 (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 assemble } /*
/* { dg-options "-Os -fomit-frame-pointer -m68040" } */
/* { dg-final { object-size text <= 30 } } */

struct kobject {
        unsigned int b7:1;
        unsigned int b56:2;
        unsigned int b1234:4;
        unsigned int b0:1;
        unsigned char x;
        unsigned int f;
};

void b7(struct kobject *kobj)
{
        kobj->b7 = 1;
}

void b56(struct kobject *kobj)
{
        kobj->b56 = 3;
}

void b1234(struct kobject *kobj)
{
        kobj->b1234 = 15;
}