xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2*f4a2713aSLionel Sambuc struct A { char s, t, u, v; short a; };
3*f4a2713aSLionel Sambuc // CHECK: %a = alloca %struct.A, align 2
4*f4a2713aSLionel Sambuc // CHECK: %b = alloca %struct.A, align 2
5*f4a2713aSLionel Sambuc // CHECK: call void @llvm.memcpy.p0i8.p0i8.{{.*}}, i32 2, i1 false)
6*f4a2713aSLionel Sambuc 
q()7*f4a2713aSLionel Sambuc void q() { struct A a, b; a = b; }
8