OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR testsuite/48283
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
pr46970.c
1
/* { dg-do run } */
2
/* { dg-options "-Os -ftree-loop-linear" } */
3
4
#define N 16
5
6
int
7
main1 (int n, int *a)
8
{
9
int i, j;
10
11
for (i = 0; i < n; i++)
12
for (j = 0; j < n; j++)
13
a[j] = i + n;
14
15
for (j = 0; j < n; j++)
16
if (a[j] != i + n - 1)
17
__builtin_abort ();
18
19
return 0;
20
}
21
22
int
23
main ()
24
{
25
int a[N];
26
main1 (N, a);
27
return 0;
28
}