llvm-mirror/test/CFrontend/2003-08-29-BitFieldStruct.c
2007-01-17 07:59:14 +00:00

14 lines
220 B
C

// RUN: %llvmgcc -S %s -o - | llvm-as -f -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);
}