Skip to content

Commit b7a3ea6

Browse files
Merge pull request #8100 from jkorous-apple/cxx-safe-buffers/integrate/fix-test
[-Wunsafe-buffer-usage][NFC] Add testcase for not-unsafe pointer
2 parents d349ae0 + 46aac4c commit b7a3ea6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ void unsafe_method_invocation_single_param() {
8585

8686
void safe_method_invocation_single_param() {
8787
int* p = new int[10];
88+
// CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-1]]:{{.*}}-[[@LINE-1]]:{{.*}}}
8889
foo(p);
8990
}
9091

0 commit comments

Comments
 (0)