| 1 | // RUN: %clang_cc1 -Wall -ffreestanding -fsyntax-only -fwrapv -verify %s |
|---|---|
| 2 | |
| 3 | int test() { |
| 4 | int i; |
| 5 | i = -1 << 1; // no-warning |
| 6 | return i; |
| 7 | } |
| 8 | |
| 9 | // expected-no-diagnostics |
| 10 |
| 1 | // RUN: %clang_cc1 -Wall -ffreestanding -fsyntax-only -fwrapv -verify %s |
|---|---|
| 2 | |
| 3 | int test() { |
| 4 | int i; |
| 5 | i = -1 << 1; // no-warning |
| 6 | return i; |
| 7 | } |
| 8 | |
| 9 | // expected-no-diagnostics |
| 10 |