blob: c65d66c1214cd7c3508ce939b6ffb7cbf1354687 [file] [log] [blame]
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -07001// RUN: %clang_cc1 -fsyntax-only -Wshift-count-negative -fblocks -verify %s
2
3int f(int a) {
4 const int i = -1;
5 return a << i; // expected-warning{{shift count is negative}}
6}