repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Driver: tweak handling of '--analyze' to invoke
[clang.git]
/
test
/
Sema
/
init-vector.c
blob
f0cf32bd3f9c8a29faba4757eeb1e8a110e16296
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
typedef
float
__attribute__
((
vector_size
(
16
)))
v4f_t
;
4
5
typedef
union
{
6
struct
{
7
float
x
,
y
,
z
,
w
;
8
}
s
;
9
v4f_t v
;
10
}
vector_t
;
11
12
13
vector_t
foo
(
v4f_t p
)
14
{
15
vector_t v
= {.
v
=
p
};
16
return
v
;
17
}