diff options
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"); +} |