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