repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add qdf24xx base tuning support.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
20131115-1.c
blob
edb05f04c47b8e6e07a1a1c6e0016c6f0d5ed5a3
1
/* { dg-do run } */
2
3
struct
S
{
int
i
; };
4
__attribute__
((
const
,
noinline
,
noclone
))
5
struct
S
foo
(
int
x
)
6
{
7
struct
S s
;
8
s
.
i
=
x
;
9
return
s
;
10
}
11
12
int
a
[
2048
],
b
[
2048
],
c
[
2048
],
d
[
2048
];
13
struct
S e
[
2048
];
14
15
__attribute__
((
noinline
,
noclone
))
void
16
bar
(
void
)
17
{
18
int
i
;
19
for
(
i
=
0
;
i
<
1024
;
i
++)
20
{
21
e
[
i
] =
foo
(
i
);
22
a
[
i
+
2
] =
a
[
i
] +
a
[
i
+
1
];
23
b
[
10
] =
b
[
10
] +
i
;
24
c
[
i
] =
c
[
2047
-
i
];
25
d
[
i
] =
d
[
i
+
1
];
26
}
27
}
28
29
int
30
main
()
31
{
32
int
i
;
33
bar
();
34
for
(
i
=
0
;
i
<
1024
;
i
++)
35
if
(
e
[
i
].
i
!=
i
)
36
__builtin_abort
();
37
return
0
;
38
}