brintos

brintos / llvm-project-archived public Read only

0
0
Text · 178 B · c65d66c Raw
7 lines · c
1// RUN: %clang_cc1 -fsyntax-only -Wshift-count-negative -fblocks -verify %s2 3int f(int a) {4  const int i = -1;5  return a << i; // expected-warning{{shift count is negative}}6}7