forked from OSchip/llvm-project
Example:
% ./clang -Wshift-negative-value emit.c
emit.c:3:14: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
int a = -1 << 3;
~~ ^
1 warning generated.
PR: 24026
Differential Revision: http://reviews.llvm.org/D10938
Reviewed by: rsmith
llvm-svn: 241478
|
||
|---|---|---|
| .. | ||
| p2-0x.cpp | ||
| p3-0x-nowarn.cpp | ||
| p3-0x.cpp | ||
| p5-0x.cpp | ||