Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-project
/
e441b7a7a0a72c28daf5a8e594559c667e5b4534
/
.
/
clang
/
test
/
Sema
/
warn-shift-negative.c
blob: c65d66c1214cd7c3508ce939b6ffb7cbf1354687 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -Wshift-count-negative -fblocks -verify %s
int
f
(
int
a
)
{
const
int
i
=
-
1
;
return
a
<<
i
;
// expected-warning{{shift count is negative}}
}