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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr59374-2.c
blob
d791b987ef61aa76581ab91acc911e452187fb18
1
/* { dg-do run } */
2
/* { dg-additional-options "-ftree-slp-vectorize" } */
3
4
extern
void
abort
(
void
);
5
6
static struct
X
{
void
*
a
;
void
*
b
; }
a
,
b
;
7
static struct
X
*
p
;
8
9
void
__attribute__
((
noinline
))
10
foo
(
void
)
11
{
12
void
*
tem
=
a
.
b
;
13
p
->
b
= (
void
*)
0
;
14
b
.
b
=
tem
;
15
b
.
a
=
a
.
a
;
16
}
17
18
int
main
()
19
{
20
p
= &
a
;
21
a
.
b
= &
a
;
22
foo
();
23
if
(
b
.
b
!= &
a
)
24
abort
();
25
return
0
;
26
}