mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 17:36:30 +00:00
7 lines
284 B
C++
7 lines
284 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
// Function annotations.
|
|
[[clang::unsafe_buffer_usage]]
|
|
void f(int *buf, int size);
|
|
void g(int *buffer [[clang::unsafe_buffer_usage("buffer")]], int size); // expected-warning {{'unsafe_buffer_usage' attribute only applies to functions}}
|