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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
struct-alias-1.c
blob
6cfadcf2cb64b681cbc8f4f822e37d92ea760f91
1
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
4
struct
S
{
5
int
a
[
3
];
6
int
x
;
7
};
8
9
extern
void
link_error
(
void
);
10
static int
i
;
11
12
int
main
()
13
{
14
struct
S s
;
15
16
s
.
x
=
0
;
17
s
.
a
[
i
] =
1
;
18
if
(
s
.
x
!=
0
)
19
link_error
();
20
21
return
0
;
22
}