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
/
vect
/
pr40254.c
blob
04fc3eb9b8b8423119a417b8d4982ff948ceb643
1
#include <stdarg.h>
2
#include
"tree-vect.h"
3
4
struct
s
5
{
6
int
*
x
;
7
int
x1
;
8
int
x2
;
9
int
x3
;
10
int
*
y
;
11
};
12
13
struct
s arr
[
64
]
__attribute__
((
__aligned__
(
__BIGGEST_ALIGNMENT__
)));
14
15
__attribute__
((
noinline
))
void
16
foo
(
int
i
,
int
*
in_x
,
int
*
in_y
)
17
{
18
arr
[
i
].
x
=
in_x
;
19
arr
[
i
].
y
=
in_y
;
20
}
21
22
int
23
main
(
void
)
24
{
25
int
a
,
b
;
26
27
check_vect
();
28
29
foo
(
5
, &
a
, &
b
);
30
31
if
(
arr
[
5
].
x
!= &
a
||
arr
[
5
].
y
!= &
b
)
32
abort
();
33
34
return
0
;
35
}
36
37