llvm-project/clang/test/CodeGen/struct-copy.c

8 lines
141 B
C

// RUN: clang-cc -emit-llvm %s -o - | grep 'call.*llvm.memcpy'
struct x { int a[100]; };
void foo(struct x *P, struct x *Q) {
*P = *Q;
}