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
[AArch64] Add fpext and fpround costs (#119292)
[llvm-project.git]
/
clang
/
test
/
Sema
/
warn-shift-negative.c
blob
c65d66c1214cd7c3508ce939b6ffb7cbf1354687
1
// RUN: %clang_cc1 -fsyntax-only -Wshift-count-negative -fblocks -verify %s
2
3
int
f
(
int
a
) {
4
const int
i
= -
1
;
5
return
a
<<
i
;
// expected-warning{{shift count is negative}}
6
}