Commit bf4bcb92 authored by Matthias Braun's avatar Matthias Braun
Browse files

improve vararray test, make the array bigger so that the app crashs on wrong implementations :)

parent 9738458b
......@@ -11,12 +11,17 @@ int test(int data[], int len) {
for(i = 0; i < len; ++i) {
printf("%d\n", arr[i]);
}
return 0;
}
int _data[] = {3, 2, 1};
int _data[] = {0, 0, 0, 1, 11, 111, 2, 22, 222, 3, 33, 333,
4, 44, 444, 5, 55, 555, 6, 66, 666, 7, 77, 777,
8, 88, 888, 9, 99, 999};
static const size_t len = sizeof(_data)/sizeof(_data[0]);
int main()
{
test(_data, 3);
test(_data, len);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment