1*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm %s -o %t -triple=x86_64-apple-darwin10
2*67e74705SXin Li // RUN: FileCheck < %t %s
3*67e74705SXin Li
4*67e74705SXin Li // Make sure this doesn't crash. We used to generate a byval here and wanted to
5*67e74705SXin Li // verify a valid alignment, but we now realize we can use an i16 and let the
6*67e74705SXin Li // backend guarantee the alignment.
7*67e74705SXin Li
8*67e74705SXin Li void a(int,int,int,int,int,int,__complex__ char);
b(__complex__ char * y)9*67e74705SXin Li void b(__complex__ char *y) { a(0,0,0,0,0,0,*y); }
10*67e74705SXin Li // CHECK-LABEL: define void @b
11*67e74705SXin Li // CHECK: alloca { i8, i8 }*, align 8
12*67e74705SXin Li // CHECK: call void @a(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i16 {{.*}})
13