History

added strlen test

bellard committed 24 years ago

Commit 048e7101 parent 5a50e731 file · +11 −0Browse files

Unified · Split

boundtest.c+11−0
@@ -159,6 +159,16 @@ int test12(void) · 158 unmodified lines
159 return 0;159 return 0;
160}160}
161 161
162/* error */
163int 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
162int (*table_test[])(void) = {172int (*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
178int main(int argc, char **argv)189int main(int argc, char **argv)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t