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 middle-end/40747
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr38048-1.c
1
extern void abort(void);
2
3
int foo ()
4
{
5
int mat[2][1];
6
int (*a)[1] = mat;
7
int det = 0;
8
int i;
9
mat[0][0] = 1;
10
mat[1][0] = 2;
11
for (i = 0; i < 2; ++i)
12
det += a[i][0];
13
return det;
14
}
15
16
int main()
17
{
18
if (foo () != 3)
19
abort ();
20
return 0;
21
}
22