warn-shift-negative.c 178 Bytes Raw Blame History Permalink 1 2 3 4 5 6 // RUN: %clang_cc1 -fsyntax-only -Wshift-count-negative -fblocks -verify %s int f(int a) { const int i = -1; return a << i; // expected-warning{{shift count is negative}} }