repo.or.cz
/
pet.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
perform substitutions on size expression of array declared in inlined function
[pet.git]
/
tests
/
inline7.c
blob
8683a64fc94ff9df89b8b60551d4610e229a71d1
1
struct
s
{
2
int
a
[
30
][
40
];
3
int
b
[
50
];
4
};
5
6
void
g
(
struct
s
*
u
)
7
{
8
for
(
int
i
=
0
;
i
<
10
; ++
i
)
9
for
(
int
j
=
0
;
j
<
10
; ++
j
)
10
u
->
a
[
10
+
i
][
20
+
j
] =
i
+
j
;
11
u
->
b
[
5
] =
1
;
12
}
13
14
inline
void
h
(
struct
s t
[
20
])
15
{
16
for
(
int
i
=
0
;
i
<
20
; ++
i
)
17
g
(&
t
[
i
]);
18
}
19
20
void
f
()
21
{
22
struct
s s
[
10
][
20
];
23
24
#pragma scop
25
for
(
int
i
=
0
;
i
<
10
; ++
i
)
26
h
(
s
[
i
]);
27
#pragma endscop
28
}