aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pointer-to-int.c
blob: 76bb4159b365698830b675779c40af0a2295df9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm -Wno-int-conversion %s -o -

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

int test2(void) {
  float x[2];
  return x;
}