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