summaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/builtin-memfns.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/builtin-memfns.m')
-rw-r--r--test/CodeGenObjC/builtin-memfns.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenObjC/builtin-memfns.m b/test/CodeGenObjC/builtin-memfns.m
new file mode 100644
index 0000000000000..bb425c037c640
--- /dev/null
+++ b/test/CodeGenObjC/builtin-memfns.m
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.8.0 -emit-llvm -o - %s | FileCheck %s
+
+void *memcpy(void *restrict s1, const void *restrict s2, unsigned long n);
+
+// PR13697
+void test1(int *a, id b) {
+ // CHECK: @test1
+ // CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* {{.*}}, i8* {{.*}}, i64 8, i32 1, i1 false)
+ memcpy(a, b, 8);
+}