Debian Codegraph @

clang/test/SemaCXX/noescape-attr.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 template<typename T>
4 void test1(T __attribute__((noescape)) arr, int size);
5
6 // expected-warning@+1 {{'noescape' attribute only applies to pointer arguments}}
7 void test2(int __attribute__((noescape)) arr, int size);