diff options
Diffstat (limited to 'clang/test/CodeGen/2007-11-28-GlobalInitializer.c')
-rw-r--r-- | clang/test/CodeGen/2007-11-28-GlobalInitializer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2007-11-28-GlobalInitializer.c b/clang/test/CodeGen/2007-11-28-GlobalInitializer.c new file mode 100644 index 0000000..a79ccdd --- /dev/null +++ b/clang/test/CodeGen/2007-11-28-GlobalInitializer.c @@ -0,0 +1,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); + |