[llvm-commits] CVS: llvm/test/CFrontend/2007-02-04-AddrLValue.c
Chris Lattner
sabre at nondot.org
Sun Feb 4 18:19:25 PST 2007
Changes in directory llvm/test/CFrontend:
2007-02-04-AddrLValue.c added (r1.1)
---
Log message:
test for pr1173: http://llvm.org/PR1173
---
Diffs of the changes: (+23 -0)
2007-02-04-AddrLValue.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+)
Index: llvm/test/CFrontend/2007-02-04-AddrLValue.c
diff -c /dev/null llvm/test/CFrontend/2007-02-04-AddrLValue.c:1.1
*** /dev/null Sun Feb 4 20:19:19 2007
--- llvm/test/CFrontend/2007-02-04-AddrLValue.c Sun Feb 4 20:19:09 2007
***************
*** 0 ****
--- 1,23 ----
+ // RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
+ // PR1173
+
+ typedef struct
+ {
+ char *key;
+ char *value;
+ } T1;
+
+ typedef struct
+ {
+ long type;
+ char *value;
+ } T3;
+
+ T1 a[] =
+ {
+ {
+ "",
+ ((char *)&((T3) {1, (char *) 1}))
+ }
+ };
+
More information about the llvm-commits
mailing list