llvm-project/clang/test/CodeGen/2003-08-29-BitFieldStruct.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
213 B
C
Raw Normal View History

// 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);
}