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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr47001.c
blob
53e0a4fc476675ef93ef44c2a1a8bfbb2914e76d
1
/* { dg-do compile } */
2
3
extern
void
abort
(
void
);
4
5
#define N 128
6
7
int
a
[
N
];
8
9
int
main1
(
int
res0
,
int
res1
)
10
{
11
int
i
;
12
int
sum0
=
0
,
sum1
=
0
;
13
14
for
(
i
=
0
;
i
<
N
/
2
;
i
++) {
15
sum1
+=
a
[
2
*
i
];
16
sum0
+=
a
[
2
*
i
];
17
}
18
19
/* Check results: */
20
if
(
sum0
!=
res0
21
||
sum1
!=
res1
)
22
abort
();
23
24
return
0
;
25
}
26