]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/volatile-bitfields-1.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / volatile-bitfields-1.c
CommitLineData
e5fe4319
JY
1/* { dg-options "-fstrict-volatile-bitfields" } */
2/* { dg-do run } */
3
4extern int puts(const char *);
5extern void abort(void) __attribute__((noreturn));
6
7typedef struct {
8 volatile unsigned short a:8, b:8;
9} BitStruct;
10
11BitStruct bits = {1, 2};
12
13void check(int i, int j)
14{
15 if (i != 1 || j != 2) puts("FAIL"), abort();
16}
17
18int main ()
19{
20 check(bits.a, bits.b);
21
22 return 0;
23}