From a466ee3106de678c3db38c97c2af21289b403ee7 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 25 Mar 2009 17:45:18 +0000 Subject: [PATCH] One more test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67694 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/memcpy_chk.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/FrontendC/memcpy_chk.c b/test/FrontendC/memcpy_chk.c index b6d01ec5642..7c07931c079 100644 --- a/test/FrontendC/memcpy_chk.c +++ b/test/FrontendC/memcpy_chk.c @@ -1,5 +1,6 @@ // RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep call | grep memcpy_chk | count 3 -// RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep call | grep {llvm.memcpy} | count 2 +// RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep call | grep {llvm.memcpy} | count 3 +// rdar://6716432 void *t1(void *d, void *s) { return __builtin___memcpy_chk(d, s, 16, 0); @@ -21,3 +22,7 @@ char buf[10]; void *t5(void *s, unsigned len) { return __builtin___memcpy_chk(buf, s, 5, __builtin_object_size(buf, 0)); } + +void *t6(void *d, void *s) { + return __builtin___memcpy_chk(d, s, 16, __builtin_object_size(d, 0)); +}