1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i686-apple-darwin %s -emit-llvm -o - | FileCheck %s 2*f4a2713aSLionel Sambuc // Set alignment on bitfield accesses. 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc struct S { 5*f4a2713aSLionel Sambuc int a, b; 6*f4a2713aSLionel Sambuc void *c; 7*f4a2713aSLionel Sambuc unsigned d : 8; 8*f4a2713aSLionel Sambuc unsigned e : 8; 9*f4a2713aSLionel Sambuc }; 10*f4a2713aSLionel Sambuc f0(struct S * a)11*f4a2713aSLionel Sambucvoid f0(struct S *a) { 12*f4a2713aSLionel Sambuc // CHECK: load {{.*}}, align 4 13*f4a2713aSLionel Sambuc // CHECK: store {{.*}}, align 4 14*f4a2713aSLionel Sambuc a->e = 0; 15*f4a2713aSLionel Sambuc } 16