summaryrefslogtreecommitdiff
path: root/test/FrontendC/2003-08-29-BitFieldStruct.c
blob: 8c303e8f2e01709fd6789f6990f740dfe8ec7bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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);
}