summaryrefslogtreecommitdiff
path: root/test/regression/bitfields6.c
blob: 3c2dcbe5d19fbfb2309306b38e12877d16918858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

struct S0 {
   unsigned f : 10;
};

struct S1 {
   unsigned f : 32;
};

int main(void)
{
    struct S0 l = {1};
    struct S1 m = {1};
    printf("g = %d\n", (-1 >= l.f));
    printf("h = %d\n", (-1 >= m.f));
    return 0;
}