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/37630
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20080424-1.c
1
/* PR tree-optimization/36008 */
2
3
extern void abort (void);
4
5
int g[48][3][3];
6
7
void __attribute__ ((noinline))
8
bar (int x[3][3], int y[3][3])
9
{
10
static int i;
11
if (x != g[i + 8] || y != g[i++])
12
abort ();
13
}
14
15
static inline void __attribute__ ((always_inline))
16
foo (int x[][3][3])
17
{
18
int i;
19
for (i = 0; i < 8; i++)
20
{
21
int k = i + 8;
22
bar (x[k], x[k - 8]);
23
}
24
}
25
26
int
27
main ()
28
{
29
foo (g);
30
return 0;
31
}