diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-27 02:45:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-27 02:45:14 +0000 |
commit | cb2480d0a8460a40ccad1bc18dafdc07f4f4b312 (patch) | |
tree | 9466e93ba954853533d48b840822b38ee5ab74c8 /test | |
parent | 2d69724938e67ec248e0ba42f86287923b3a5171 (diff) | |
download | external_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.c | 6 |
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)); +} |