xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-11-28-GlobalInitializer.c (revision eda6f5931d42c77e1480347b1fc3eef2f8d33806)
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