diff options
author | Mike Stump <mrs@apple.com> | 2009-10-29 23:34:20 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-10-29 23:34:20 +0000 |
commit | 3f0147e161df4725ff15fbb731f4f727afcc229f (patch) | |
tree | d16d785d97af262e82085037cb704decad51a1ac /test/CodeGen/object-size.c | |
parent | 2623aa283772f629189620a993e2343f2525d262 (diff) |
Fix one more bug with __builtin_object_size.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/object-size.c')
-rw-r--r-- | test/CodeGen/object-size.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/object-size.c b/test/CodeGen/object-size.c index 27e24ac120..db6d948d83 100644 --- a/test/CodeGen/object-size.c +++ b/test/CodeGen/object-size.c @@ -118,3 +118,9 @@ void test15() { // CHECK: call ___inline_strcpy_chk strcpy(gp--, "Hi there"); } + +void test16() { + // CHECK-NOT: call ___strcpy_chk + // CHECK: call ___inline_strcpy_chk + strcpy(gp += 1, "Hi there"); +} |