1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -O3 -emit-llvm -o - 2*f4a2713aSLionel Sambuc // PR1173 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc struct S { char s; }; 5*f4a2713aSLionel Sambuc struct T { struct S t; }; 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc struct S *const p = &((struct T * const) (0x4000))->t; 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc void foo(void)10*f4a2713aSLionel Sambucfoo (void) 11*f4a2713aSLionel Sambuc { 12*f4a2713aSLionel Sambuc p->s = 0; 13*f4a2713aSLionel Sambuc } 14