summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pointer-to-int.c
blob: 30a6db280d41065a58945f2d77d0bc3947e3c7b6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -emit-llvm %s -o -

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

// rdar://6093986
int test2(void) {
  float x[2];
  return x;
}