llvm-project/llvm/test/FrontendC/2003-08-29-BitFieldStruct.c

14 lines
217 B
C

// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
struct Word {
short bar;
short baz;
int final:1;
short quux;
} *word_limit;
void foo ()
{
word_limit->final = (word_limit->final && word_limit->final);
}