projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.7.3
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr47001.c
1
/* { dg-do compile } */
2
3
#include <stdlib.h>
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
27
/* { dg-final { cleanup-tree-dump "vect" } } */