llvm/clang/test/CodeGen/2002-09-08-PointerShifts.c

// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null


int foo(int *A, unsigned X) {
  return A[X];
}