☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
Sema
/
warn-shift-negative.c
☽
☼
clang/test/Sema/warn-shift-negative.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}