llvm/clang/test/CodeGen/int-to-pointer.c

// RUN: %clang_cc1 -emit-llvm %s -o %t

void *test(int i)
{
  return (void *)i;
}