summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2003-10-17-BoolBitfields.cpp
blob: 547a367d34e6ad4abdba9ea292b3a6e4d20d5ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null

struct test {
  bool A : 1;
  bool B : 1;
};

void foo(test *T) {
  T->B = true;
}