diff options
Diffstat (limited to 'clang/test/CodeGen/struct-copy.c')
-rw-r--r-- | clang/test/CodeGen/struct-copy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/struct-copy.c b/clang/test/CodeGen/struct-copy.c new file mode 100644 index 0000000..6f3b664 --- /dev/null +++ b/clang/test/CodeGen/struct-copy.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -emit-llvm %s -o - | grep 'call.*llvm.memcpy' +struct x { int a[100]; }; + + +void foo(struct x *P, struct x *Q) { + *P = *Q; +} |