Add yet more testcases.

llvm-svn: 85535
This commit is contained in:
Mike Stump 2009-10-29 23:29:54 +00:00
parent eb5c92b399
commit dc28a8b997
1 changed files with 30 additions and 0 deletions

View File

@ -88,3 +88,33 @@ void test10() {
// CHECK: call ___inline_strcpy_chk
strcpy(*(++p), "Hi there");
}
void test11() {
// CHECK-NOT: call ___strcpy_chk
// CHECK: call ___inline_strcpy_chk
strcpy(gp = gbuf, "Hi there");
}
void test12() {
// CHECK-NOT: call ___strcpy_chk
// CHECK: call ___inline_strcpy_chk
strcpy(++gp, "Hi there");
}
void test13() {
// CHECK-NOT: call ___strcpy_chk
// CHECK: call ___inline_strcpy_chk
strcpy(gp++, "Hi there");
}
void test14() {
// CHECK-NOT: call ___strcpy_chk
// CHECK: call ___inline_strcpy_chk
strcpy(--gp, "Hi there");
}
void test15() {
// CHECK-NOT: call ___strcpy_chk
// CHECK: call ___inline_strcpy_chk
strcpy(gp--, "Hi there");
}