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
/
pr83415.c
blob
2fc85031505df6977cee99050aaff276e8e3202e
1
/* { dg-do compile } */
2
/* { dg-options "-O" } */
3
4
const short
__attribute__
((
vector_size
(
16
)))
y
= {
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
};
5
6
int
7
main
(
int
argc
,
short
*
argv
[])
8
{
9
int
i
=
argc
;
10
y
[
i
] =
7
-
i
;
/* { dg-error "read-only" } */
11
return
0
;
12
}