diff options
Diffstat (limited to 'test/Analysis/malloc-sizeof.c')
-rw-r--r-- | test/Analysis/malloc-sizeof.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Analysis/malloc-sizeof.c b/test/Analysis/malloc-sizeof.c index 943c4ce17c..7a8585fa84 100644 --- a/test/Analysis/malloc-sizeof.c +++ b/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; } |