13 lines · c
1// RUN: %clang_cc1 -emit-llvm %s -o %t -triple=x86_64-apple-darwin102// RUN: FileCheck < %t %s3 4// Make sure this doesn't crash. We used to generate a byval here and wanted to5// verify a valid alignment, but we now realize we can use an i16 and let the6// backend guarantee the alignment.7 8void a(int,int,int,int,int,int,__complex__ char);9void b(__complex__ char *y) { a(0,0,0,0,0,0,*y); }10// CHECK-LABEL: define{{.*}} void @b11// CHECK: alloca ptr, align 812// CHECK: call void @a(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i16 {{.*}})13