1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Add a __builtin___memset_chk test.

llvm-svn: 67815
This commit is contained in:
Evan Cheng 2009-03-27 02:45:14 +00:00
parent 9fd8bb432f
commit 00b79de6a7

View File

@ -0,0 +1,6 @@
// RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep call | not grep memset_chk
// rdar://6728562
void t(void *ptr) {
__builtin___memset_chk(ptr, 0, 32, __builtin_object_size (ptr, 0));
}