1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2 struct x
{ int a
[100]; };
5 void foo(struct x
*P
, struct x
*Q
) {
7 // CHECK: call void @llvm.memcpy.p0.p0
11 // CHECK: declare void @llvm.memcpy.p0.p0{{.*}}(ptr noalias nocapture writeonly, ptr noalias nocapture readonly
13 void bar(struct x
*P
, struct x
*Q
) {
15 // CHECK: call void @llvm.memcpy.p0.p0
16 __builtin_memcpy(P
, Q
, sizeof(struct x
));