cmake HAVE_ATTRIBUTE_CLEANUP examples

arkdb/arkproxy configure.cmake :859

CHECK_C_SOURCE_COMPILES("
    void foo(int *x) { }
    int main() {
      int a __attribute__((cleanup(foo)));
      return 0;
    }"
    HAVE_ATTRIBUTE_CLEANUP
)

omnigres/omnigres libpgaug/CMakeLists.txt :13

try_compile(HAVE_ATTRIBUTE_CLEANUP SOURCE_FROM_CONTENT attribute_cleanup.c [=[
void cleanup(int *i) {}
int main() {
__attribute__((cleanup(cleanup))) int i = 0;
}
]=])