summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-29 23:34:20 +0000
committerMike Stump <mrs@apple.com>2009-10-29 23:34:20 +0000
commitf3eb5ec2c065dd5c91620eb2643d4aaa7facfba6 (patch)
tree6821f7b1de8dbd560cab0a49d597b62b7161027e /clang/test/CodeGen
parentfaa7660fd06a81c3e5125761332f7be4b384381e (diff)
downloadbcm5719-llvm-f3eb5ec2c065dd5c91620eb2643d4aaa7facfba6.tar.gz
bcm5719-llvm-f3eb5ec2c065dd5c91620eb2643d4aaa7facfba6.zip
Fix one more bug with __builtin_object_size.
llvm-svn: 85538
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/object-size.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/object-size.c b/clang/test/CodeGen/object-size.c
index 27e24ac1201..db6d948d83e 100644
--- a/clang/test/CodeGen/object-size.c
+++ b/clang/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");
+}
OpenPOWER on IntegriCloud