diff options
Diffstat (limited to 'tinycc/tests/tests2/126_bound_global.c')
| -rw-r--r-- | tinycc/tests/tests2/126_bound_global.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tinycc/tests/tests2/126_bound_global.c b/tinycc/tests/tests2/126_bound_global.c new file mode 100644 index 0000000..d3a5c3b --- /dev/null +++ b/tinycc/tests/tests2/126_bound_global.c @@ -0,0 +1,13 @@ +/* test bound checking code without -run */ + +int arr[10]; + +int +main(int argc, char **argv) +{ + int i; + + for (i = 0; i <= sizeof(arr)/sizeof(arr[0]); i++) + arr[i] = 0; + return 0; +} |
