1 // RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage -fsafe-buffer-usage-suggestions -verify %s
5 ptr
[5] = 10; // expected-warning{{unsafe buffer access}}
16 ptr
[5] = 10; // expected-warning{{unsafe buffer access}}
19 void call_foo(int *p
) {
22 str
.name
[7] = 9; // expected-warning{{unsafe buffer access}}