llvm-project/clang/test/Sema/negative-shift-wrapv.c

10 lines
167 B
C
Raw Normal View History

// RUN: %clang_cc1 -Wall -ffreestanding -fsyntax-only -fwrapv -verify %s
int test() {
int i;
i = -1 << 1; // no-warning
return i;
}
// expected-no-diagnostics