1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 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}} 7