diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-27 21:35:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-27 21:35:27 +0000 |
commit | 4cc627111453b75519d5130b57e06256da7b00e8 (patch) | |
tree | addac1d84eee70fba15728ddb2f6db27697cf3b3 /test/Sema/init.c | |
parent | f471f2eb17ad9733b73785bf256639110f26d330 (diff) | |
download | clang-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.c | 4 |
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]); + |