summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2007-02-04-AddrLValue.c
blob: 400dcb60a73c5d459ef413f0b3d485cb4b0aa455 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: %clang_cc1 %s -O3 -emit-llvm -o -
// PR1176

typedef struct
{
  char *key;
  char *value;
} T1;

typedef struct
{
  long type;
  char *value;
} T3;

T1 a[] =
{
  {
    "",
    ((char *)&((T3) {1, (char *) 1}))
  }
};