1 // RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage \
2 // RUN: -fsafe-buffer-usage-suggestions \
5 char * unsafe_pointer
; // expected-warning{{'unsafe_pointer' is an unsafe pointer used for buffer access}}
7 void test(char * param
) {
10 void dre_parenthesized() {
11 test(&(unsafe_pointer
)[1]); // no-crash // expected-note{{used in buffer access here}}