diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-08-24 17:36:20 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-08-24 17:36:20 +0000 | 
| commit | cb2d6caa93d19e64ec782d5ea04d6b1611cb2c10 (patch) | |
| tree | c36cf9e995310144c8b7f877846f09e2f0c248f9 /test/Sema/negative-shift-wrapv.c | |
| parent | 631f6b779f4d248755ad71398d0f296653dd62cf (diff) | |
Notes
Diffstat (limited to 'test/Sema/negative-shift-wrapv.c')
| -rw-r--r-- | test/Sema/negative-shift-wrapv.c | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/negative-shift-wrapv.c b/test/Sema/negative-shift-wrapv.c new file mode 100644 index 000000000000..b8748201ffc0 --- /dev/null +++ b/test/Sema/negative-shift-wrapv.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -Wall -ffreestanding -fsyntax-only -fwrapv -verify %s + +int test() { +  int i; +  i = -1 << 1; // no-warning +  return i; +} + +// expected-no-diagnostics  | 
