bolt/deps/llvm-18.1.8/clang/test/Sema/negative-shift-wrapv.c

10 lines
171 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -Wall -ffreestanding -fsyntax-only -fwrapv -verify %s
int test(void) {
int i;
i = -1 << 1; // no-warning
return i;
}
// expected-no-diagnostics