repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tcc
/
122_vla_reuse.c
blob
d894af87a38d36ed0769cd61dbf46408daba1c66
1
#include <stdio.h>
2
3
int
4
main
(
void
)
5
{
6
int
n
=
0
;
7
int
first
=
1
;
8
int
*
p
[
101
];
9
if
(
0
) {
10
lab
:;
11
}
12
int
x
[
n
%
100
+
1
];
13
if
(
first
==
0
) {
14
if
(&
x
[
0
] !=
p
[
n
%
100
+
1
]) {
15
printf
(
"ERROR: %d %p $p
\n
"
, &
x
[
0
],
p
[
n
%
100
+
1
]);
16
return
(
1
);
17
}
18
}
19
else
{
20
p
[
n
%
100
+
1
] = &
x
[
0
];
21
first
=
n
<
100
;
22
}
23
x
[
0
] =
1
;
24
x
[
n
%
100
] =
2
;
25
n
++;
26
if
(
n
<
100000
)
27
goto
lab
;
28
printf
(
"OK
\n
"
);
29
return
0
;
30
}
31