xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/pointer-to-int.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o -
2*f4a2713aSLionel Sambuc 
test(void * i)3*f4a2713aSLionel Sambuc int test(void* i)
4*f4a2713aSLionel Sambuc {
5*f4a2713aSLionel Sambuc   return (int)i;
6*f4a2713aSLionel Sambuc }
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // rdar://6093986
test2(void)9*f4a2713aSLionel Sambuc int test2(void) {
10*f4a2713aSLionel Sambuc   float x[2];
11*f4a2713aSLionel Sambuc   return x;
12*f4a2713aSLionel Sambuc }
13*f4a2713aSLionel Sambuc 
14