diff options
Diffstat (limited to 'clang/test/Analysis/malloc-sizeof.c')
-rw-r--r-- | clang/test/Analysis/malloc-sizeof.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Analysis/malloc-sizeof.c b/clang/test/Analysis/malloc-sizeof.c index 943c4ce17c8..7a8585fa844 100644 --- a/clang/test/Analysis/malloc-sizeof.c +++ b/clang/test/Analysis/malloc-sizeof.c @@ -37,9 +37,11 @@ void ignore_const() { int *mallocArraySize() { static const int sTable[10]; - static const int nestedTable[10][10]; + static const int nestedTable[10][2]; int *table = malloc(sizeof sTable); int *table1 = malloc(sizeof nestedTable); + int (*table2)[2] = malloc(sizeof nestedTable); + int (*table3)[10][2] = malloc(sizeof nestedTable); return table; } |