mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-17 05:31:32 +00:00
Test for PR1173
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06b59eb161
commit
8227d886b8
13
test/CFrontend/2007-02-04-AddrLValue-2.c
Normal file
13
test/CFrontend/2007-02-04-AddrLValue-2.c
Normal file
@ -0,0 +1,13 @@
|
||||
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
|
||||
// PR1173
|
||||
|
||||
struct S { char s; };
|
||||
struct T { struct S t; };
|
||||
|
||||
struct S *const p = &((struct T * const) (0x4000))->t;
|
||||
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
p->s = 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user