summaryrefslogtreecommitdiff
path: root/test/Sema/init.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-27 21:35:27 +0000
committerChris Lattner <sabre@nondot.org>2007-11-27 21:35:27 +0000
commit4cc627111453b75519d5130b57e06256da7b00e8 (patch)
treeaddac1d84eee70fba15728ddb2f6db27697cf3b3 /test/Sema/init.c
parentf471f2eb17ad9733b73785bf256639110f26d330 (diff)
downloadclang-4cc627111453b75519d5130b57e06256da7b00e8.tar.gz
add several cases that Expr::hasStaticStorage missed, pointed out by Oliver Hunt
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r--test/Sema/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c
index 71b1d63d61..2f6df64d09 100644
--- a/test/Sema/init.c
+++ b/test/Sema/init.c
@@ -4,3 +4,7 @@ typedef void (* fp)(void);
void foo(void);
fp a[1] = { foo };
+int myArray[5] = {1, 2, 3, 4, 5};
+int *myPointer2 = myArray;
+int *myPointer = &(myArray[2]);
+