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

14 lines
220 B
C
Raw Normal View History

2004-11-07 06:41:00 +08:00
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2003-08-30 05:57:18 +08:00
struct Word {
short bar;
short baz;
2003-08-30 05:57:18 +08:00
int final:1;
short quux;
} *word_limit;
void foo ()
{
word_limit->final = (word_limit->final && word_limit->final);
}