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
/
qct
/
0080-arrays.c
blob
6d11cd3e320359f7f5f9f912b2c25771ec659f6b
1
2
int
3
foo
(
int
x
[
100
])
4
{
5
int
y
[
100
];
6
int
*
p
;
7
8
y
[
0
] =
2000
;
9
10
if
(
x
[
0
] !=
1000
)
11
{
12
return
1
;
13
}
14
15
p
=
x
;
16
17
if
(
p
[
0
] !=
1000
)
18
{
19
return
2
;
20
}
21
22
p
=
y
;
23
24
if
(
p
[
0
] !=
2000
)
25
{
26
return
3
;
27
}
28
29
if
(
sizeof
(
x
) !=
sizeof
(
void
*))
30
{
31
return
4
;
32
}
33
34
if
(
sizeof
(
y
) <=
sizeof
(
x
))
35
{
36
return
5
;
37
}
38
39
return
0
;
40
}
41
42
int
43
main
()
44
{
45
int
x
[
100
];
46
x
[
0
] =
1000
;
47
48
return
foo
(
x
);
49
}