xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-02-04-AddrLValue.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -O3 -emit-llvm -o -
2*f4a2713aSLionel Sambuc // PR1176
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc typedef struct
5*f4a2713aSLionel Sambuc {
6*f4a2713aSLionel Sambuc   char *key;
7*f4a2713aSLionel Sambuc   char *value;
8*f4a2713aSLionel Sambuc } T1;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc typedef struct
11*f4a2713aSLionel Sambuc {
12*f4a2713aSLionel Sambuc   long type;
13*f4a2713aSLionel Sambuc   char *value;
14*f4a2713aSLionel Sambuc } T3;
15*f4a2713aSLionel Sambuc 
16*f4a2713aSLionel Sambuc T1 a[] =
17*f4a2713aSLionel Sambuc {
18*f4a2713aSLionel Sambuc   {
19*f4a2713aSLionel Sambuc     "",
20*f4a2713aSLionel Sambuc     ((char *)&((T3) {1, (char *) 1}))
21*f4a2713aSLionel Sambuc   }
22*f4a2713aSLionel Sambuc };
23*f4a2713aSLionel Sambuc 
24