Skip to content

Commit 46aac4c

Browse files
committed
[-Wunsafe-buffer-usage][NFC] Add testcase for not-unsafe pointer
(cherry picked from commit ea06ed2)
1 parent 155cbe1 commit 46aac4c

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)