Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wshift-count-negative -fblocks -verify %s |
2 | |||||
3 | int f(int a) { | ||||
4 | const int i = -1; | ||||
5 | return a << i; // expected-warning{{shift count is negative}} | ||||
6 | } |