diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-28 22:43:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-28 22:43:34 +0000 |
commit | 890641e9b0f8ef57a344fe68060b72151c4f208b (patch) | |
tree | a5b2d9272b5842408f1c5b2894504db2b7111ca3 /test/CFrontend | |
parent | 7627df38556754533cf7b718bf02f4050e6c67e8 (diff) | |
download | external_llvm-890641e9b0f8ef57a344fe68060b72151c4f208b.zip external_llvm-890641e9b0f8ef57a344fe68060b72151c4f208b.tar.gz external_llvm-890641e9b0f8ef57a344fe68060b72151c4f208b.tar.bz2 |
New testcase for PR1744
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2007-11-28-GlobalInitializer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CFrontend/2007-11-28-GlobalInitializer.c b/test/CFrontend/2007-11-28-GlobalInitializer.c new file mode 100644 index 0000000..c8c7a59 --- /dev/null +++ b/test/CFrontend/2007-11-28-GlobalInitializer.c @@ -0,0 +1,8 @@ +// RUN: %llvmgcc -S %s -o - +// PR1744 +typedef struct foo { int x; char *p; } FOO; +extern FOO yy[]; + +int *y = &((yy + 1)->x); +void *z = &((yy + 1)->x); + |