aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2009-03-22-increment-bitfield.c
blob: 407aea2b77fa7dc884d0d02be41c1e54cadb9a46 (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -emit-llvm -O1 < %s | grep "ret i32 0"

int a(void) {
  return ++(struct x {unsigned x : 2;}){3}.x;
}