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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
torture
/
pr58794-2.c
blob
767798806db980585d7e4a30acacf524ef9c12f1
1
/* { dg-do compile } */
2
3
struct
S
4
{
5
volatile
int
f
;
6
}
a
;
7
8
unsigned int
b
;
9
10
static int
*
c
[
1
][
2
] = {{
0
, (
int
*)&
a
.
f
}};
11
static unsigned int
d
;
12
13
int
14
main
()
15
{
16
for
(;
d
<
1
;
d
++)
17
for
(;
b
<
1
;
b
++)
18
*
c
[
b
][
d
+
1
] =
0
;
19
20
return
0
;
21
}