llvm-for-llvmta/tools/clang/test/Sema/negative-shift-wrapv.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

10 lines
167 B
C

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