mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-29 16:12:44 +00:00
One more test.
llvm-svn: 67694
This commit is contained in:
parent
9fb1dcd077
commit
b5896c3c48
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user