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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
pr102281.c
blob
a961451b5a7c5e661ee13da648089fb2a635b820
1
/* PR102281 */
2
/* { dg-do compile } */
3
/* { dg-options "-ftrivial-auto-var-init=zero -Wno-psabi" } */
4
long long
var1
;
5
float
var2
;
6
typedef
long long
V
__attribute__
((
__vector_size__
(
2
*
sizeof
(
long long
))));
7
typedef
float
W
__attribute__
((
__vector_size__
(
4
*
sizeof
(
float
))));
8
9
V
foo
(
void
)
10
{
11
return
(
V
) {
var1
};
12
}
13
14
W
bar
(
void
)
15
{
16
return
(
W
) {
var2
};
17
}