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
Add PR check to suggest alternatives to using undef (#118506)
[llvm-project.git]
/
clang
/
test
/
Parser
/
vector-cast-define.cl
blob
44acf9a6b0e62b1d18ae541ea774fe80be4dc612
1
//
RUN
:
%clang_cc1 %s -verify -pedantic -fsyntax-only
2
//
expected-no-diagnostics
3
4
typedef int int3 __attribute__
((
ext_vector_type
(
3
)))
;
5
6
void test
(
void
)
7
{
8
int index
= (
int3
)(
1
,
2
,
3
)
.x
* (
int3
)(
3
,
2
,
1
)
.y
;
9
}
10