diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-25 17:45:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-25 17:45:18 +0000 |
commit | a466ee3106de678c3db38c97c2af21289b403ee7 (patch) | |
tree | 7e003ffa3bf608b01ac0c602c088aac1693f12f3 /test/FrontendC | |
parent | beaec4cbf6cfd756084eff1ee2ad18ee17c33284 (diff) | |
download | external_llvm-a466ee3106de678c3db38c97c2af21289b403ee7.zip external_llvm-a466ee3106de678c3db38c97c2af21289b403ee7.tar.gz external_llvm-a466ee3106de678c3db38c97c2af21289b403ee7.tar.bz2 |
One more test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r-- | test/FrontendC/memcpy_chk.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/FrontendC/memcpy_chk.c b/test/FrontendC/memcpy_chk.c index b6d01ec..7c07931 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)); +} |