aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2003-08-29-BitFieldStruct.c
blob: 57273cd863931e7e6324db692c23e98f7614e7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %llvmgcc -S %s -o - | llvm-as -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);
}