aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-27 02:45:14 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-27 02:45:14 +0000
commitcb2480d0a8460a40ccad1bc18dafdc07f4f4b312 (patch)
tree9466e93ba954853533d48b840822b38ee5ab74c8 /test
parent2d69724938e67ec248e0ba42f86287923b3a5171 (diff)
downloadexternal_llvm-cb2480d0a8460a40ccad1bc18dafdc07f4f4b312.zip
external_llvm-cb2480d0a8460a40ccad1bc18dafdc07f4f4b312.tar.gz
external_llvm-cb2480d0a8460a40ccad1bc18dafdc07f4f4b312.tar.bz2
Add a __builtin___memset_chk test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/memset_chk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendC/memset_chk.c b/test/FrontendC/memset_chk.c
new file mode 100644
index 0000000..b347dd0
--- /dev/null
+++ b/test/FrontendC/memset_chk.c
@@ -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));
+}