Unified · Split
| @@ -159,6 +159,16 @@ int test12(void) · 158 unmodified lines | |||
| 159 | return 0; | 159 | return 0; |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | /* error */ | ||
| 163 | int test13(void) | ||
| 164 | { | ||
| 165 | char pad1 = 0; | ||
| 166 | char tab[10]; | ||
| 167 | char pad2 = 0; | ||
| 168 | memset(tab, 'a', sizeof(tab)); | ||
| 169 | return strlen(tab); | ||
| 170 | } | ||
| 171 | |||
| 162 | int (*table_test[])(void) = { | 172 | int (*table_test[])(void) = { |
| 163 | test1, | 173 | test1, |
| 164 | test1, | 174 | test1, |
| @@ -173,6 +183,7 @@ int (*table_test[])(void) = { · 8 unmodified lines | |||
| 173 | test10, | 183 | test10, |
| 174 | test11, | 184 | test11, |
| 175 | test12, | 185 | test12, |
| 186 | test13, | ||
| 176 | }; | 187 | }; |
| 177 | 188 | ||
| 178 | int main(int argc, char **argv) | 189 | int main(int argc, char **argv) |