From 464c19e65408c2a753f3a019ade7988eadb20999 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 5 Feb 2007 02:19:09 +0000 Subject: [PATCH] test for pr1173 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33893 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-02-04-AddrLValue.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/CFrontend/2007-02-04-AddrLValue.c diff --git a/test/CFrontend/2007-02-04-AddrLValue.c b/test/CFrontend/2007-02-04-AddrLValue.c new file mode 100644 index 00000000000..a07ab90daa8 --- /dev/null +++ b/test/CFrontend/2007-02-04-AddrLValue.c @@ -0,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})) + } +}; + -- 2.34.1