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

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

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

OpenPOWER on IntegriCloud