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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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