| Anton Korobeynikov | d282d49 | 2007-02-05 02:28:56 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -O3 -S -o - -emit-llvm |
| 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 | ||||
| 10 | foo (void) | ||||
| 11 | { | ||||
| 12 | p->s = 0; | ||||
| 13 | } | ||||