aboutsummaryrefslogtreecommitdiff
path: root/boundtest.c
diff options
context:
space:
mode:
authorbellard <bellard>2002-02-10 16:14:56 +0000
committerbellard <bellard>2002-02-10 16:14:56 +0000
commit048e710e153e2724335478d957c2acd3aad0494a (patch)
tree77cd5b402132470a94a931ccae3d37f2f8e9ff1c /boundtest.c
parent5a50e7398007b083c0872f4670b3c36894468874 (diff)
downloadtinycc-048e710e153e2724335478d957c2acd3aad0494a.tar.gz
tinycc-048e710e153e2724335478d957c2acd3aad0494a.tar.bz2
added strlen test
Diffstat (limited to 'boundtest.c')
-rw-r--r--boundtest.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/boundtest.c b/boundtest.c
index 25219bb..9bc9828 100644
--- a/boundtest.c
+++ b/boundtest.c
@@ -159,6 +159,16 @@ int test12(void)
return 0;
}
+/* error */
+int test13(void)
+{
+ char pad1 = 0;
+ char tab[10];
+ char pad2 = 0;
+ memset(tab, 'a', sizeof(tab));
+ return strlen(tab);
+}
+
int (*table_test[])(void) = {
test1,
test1,
@@ -173,6 +183,7 @@ int (*table_test[])(void) = {
test10,
test11,
test12,
+ test13,
};
int main(int argc, char **argv)