Fixed some bugs.
[llvm/zpu.git] / test / FrontendC / 2009-12-07-BitFieldAlignment.c
blob02ff8bce1821ce113e69277d735bc70bc0f11d2c
1 // RUN: %llvmgcc -m32 %s -S -o - | FileCheck %s
2 // Set alignment on bitfield accesses.
4 struct S {
5 int a, b;
6 void *c;
7 unsigned d : 8;
8 unsigned e : 8;
9 };
11 void f0(struct S *a) {
12 // CHECK: load {{.*}}, align 4
13 // CHECK: store {{.*}}, align 4
14 a->e = 0;