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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
Sema
/
usual-float.c
blob
5a9ab344ce3604c01724c5c344a3139797ccea38
1
// RUN: %clang_cc1 %s -fsyntax-only
2
3
typedef
float
CGFloat
;
4
5
extern
void
func
(
CGFloat
);
6
void
foo
(
int
dir
,
int
n
,
int
tindex
) {
7
const float
PI
=
3.142
;
8
CGFloat cgf
=
3.4
;
9
10
float
ang
= (
float
)
tindex
* (-
dir
*
2.0
f
*
PI
/
n
);
11
func
((
CGFloat
)
cgf
/
65535.0
f
);
12
}