[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / attr-unsafe-buffer-usage.cpp
blob91ba446663383ca87b198773a83baa60a3f629b6
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // Function annotations.
4 [[clang::unsafe_buffer_usage]]
5 void f(int *buf, int size);
6 void g(int *buffer [[clang::unsafe_buffer_usage("buffer")]], int size); // expected-warning {{'unsafe_buffer_usage' attribute only applies to functions}}