repo.or.cz
/
kdbg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update my email address.
[kdbg.git]
/
kdbg
/
testprogs
/
repeats.cpp
blob
a7998dfc8573b7c885ac4158a60944ef719b17fe
1
// test <repeats 30 times> in arrays
2
3
#include <qstring.h>
4
5
struct
Big
{
6
struct
bog
{
7
short
b
[
40
];
8
}
a
[
40
];
9
short
c
[
40
][
40
];
10
};
11
12
static void
f
(
int
)
13
{
14
}
15
16
17
int
main
()
18
{
19
struct
Big big
= {{{
2
,}}};
20
big
.
a
[
0
].
b
[
39
]=
7
;
21
big
.
a
[
38
].
b
[
39
]=
6
;
22
23
// array of pointer to function
24
void
(*
apf
[
30
])(
int
);
25
26
for
(
int
i
=
1
;
i
<
29
;
i
++)
27
apf
[
i
] =
f
;
28
29
QString s
[
300
];
30
31
for
(
int
i
=
0
;
i
<
300
;
i
++)
32
s
[
i
].
sprintf
(
"String %d"
,
i
);
33
34
s
[
21
] =
s
[
48
];
35
36
int
many
[
300
];
37
for
(
int
i
=
0
;
i
<
300
;
i
++)
38
many
[
i
] =
i
;
39
40
return
0
;
41
}