xref: /llvm-project/clang/test/CodeGen/2007-11-28-GlobalInitializer.c (revision 85e5156598b1bbad0ae41cf4d0d5b845dd655ffd)
1 // RUN: %clang_cc1 -emit-llvm %s -o -
2 // PR1744
3 typedef struct foo { int x; char *p; } FOO;
4 extern FOO yy[];
5 
6 int *y = &((yy + 1)->x);
7 void *z = &((yy + 1)->x);
8 
9