summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/struct-copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/struct-copy.c')
-rw-r--r--test/CodeGen/struct-copy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/struct-copy.c b/test/CodeGen/struct-copy.c
new file mode 100644
index 0000000..62c29ab
--- /dev/null
+++ b/test/CodeGen/struct-copy.c
@@ -0,0 +1,7 @@
+// 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;
+}
OpenPOWER on IntegriCloud