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