xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-02-04-AddrLValue-2.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -O3 -emit-llvm -o -
2 // PR1173
3 
4 struct S { char s; };
5 struct T { struct S t; };
6 
7 struct S *const p = &((struct T * const) (0x4000))->t;
8 
9 void
foo(void)10 foo (void)
11 {
12   p->s = 0;
13 }
14