llvm-for-llvmta/tools/clang/test/CodeGen/2003-08-29-BitFieldStruct.c

14 lines
213 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm %s -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);
}