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
/
pr96133.c
blob
ac31a7141c410e06af8c1f99744875a1cae76430
1
/* { dg-do run } */
2
3
typedef
int
T
;
4
static const
T a
[
2
][
3
]
__attribute__
((
aligned
(
2
*
sizeof
(
T
)))) = { {
1
,
2
,
3
}, {
4
,
5
,
6
} };
5
typedef
T v2
__attribute__
((
vector_size
(
2
*
sizeof
(
T
))));
6
7
int
8
main
()
9
{
10
const
T
*
p
= &
a
[
0
][
2
];
11
v2 x
= *(
const
v2
*)
p
;
12
T z
=
x
[
1
];
13
if
(
z
!=
4
)
14
__builtin_abort
();
15
return
0
;
16
}