Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
bf4bcb92
Commit
bf4bcb92
authored
Feb 16, 2007
by
Matthias Braun
Browse files
improve vararray test, make the array bigger so that the app crashs on wrong implementations :)
parent
9738458b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/vararray.c
View file @
bf4bcb92
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment