summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CFrontend/2003-08-29-BitFieldStruct.c
blob: 14e825c4ea65680e6f78f3b53887c6547b382ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef enum { FALSE, TRUE } flagT;

struct Word
{
  short bar;
  short baz;
  flagT final:1;
  short quux;
} *word_limit;

void foo ()
{
  word_limit->final = (word_limit->final && word_limit->final);
}
OpenPOWER on IntegriCloud