[llvm-commits] CVS: llvm/test/CFrontend/2007-02-04-AddrLValue-2.c
Anton Korobeynikov
asl at math.spbu.ru
Sun Feb 4 18:29:12 PST 2007
Changes in directory llvm/test/CFrontend:
2007-02-04-AddrLValue-2.c added (r1.1)
---
Log message:
Test for PR1173: http://llvm.org/PR1173
---
Diffs of the changes: (+13 -0)
2007-02-04-AddrLValue-2.c | 13 +++++++++++++
1 files changed, 13 insertions(+)
Index: llvm/test/CFrontend/2007-02-04-AddrLValue-2.c
diff -c /dev/null llvm/test/CFrontend/2007-02-04-AddrLValue-2.c:1.1
*** /dev/null Sun Feb 4 20:29:06 2007
--- llvm/test/CFrontend/2007-02-04-AddrLValue-2.c Sun Feb 4 20:28:56 2007
***************
*** 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;
+ }
More information about the llvm-commits
mailing list