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
159159 return 0;
160160 }
161161
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+
162172 int (*table_test[])(void) = {
163173 test1,
164174 test1,
@@ -173,6 +183,7 @@ int (*table_test[])(void) = { · 8 unmodified lines
173183 test10,
174184 test11,
175185 test12,
186+ test13,
176187 };
177188
178189 int 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