summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2007-11-28-GlobalInitializer.c
blob: a79ccddbe9e4fde29cb5d8bca98f3ad5375487b7 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -emit-llvm %s -o - 
// PR1744
typedef struct foo { int x; char *p; } FOO;
extern FOO yy[];

int *y = &((yy + 1)->x);
void *z = &((yy + 1)->x);