1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
2*f4a2713aSLionel Sambuc // PR 5995
3*f4a2713aSLionel Sambuc struct s {
4*f4a2713aSLionel Sambuc   int word;
5*f4a2713aSLionel Sambuc   struct {
6*f4a2713aSLionel Sambuc     int filler __attribute__ ((aligned (8)));
7*f4a2713aSLionel Sambuc   };
8*f4a2713aSLionel Sambuc };
9*f4a2713aSLionel Sambuc 
func(struct s * s)10*f4a2713aSLionel Sambuc void func (struct s *s)
11*f4a2713aSLionel Sambuc {
12*f4a2713aSLionel Sambuc   // CHECK: load %struct.s**{{.*}}align 8
13*f4a2713aSLionel Sambuc   s->word = 0;
14*f4a2713aSLionel Sambuc }
15