llvm-project/clang/test/CodeGen/2007-11-28-GlobalInitializer.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
163 B
C
Raw Normal View History

// 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);