minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/attr-cleanup.cpp

12 lines
209 B
C++
Raw Normal View History

// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
namespace N {
void free(void *i) {}
}
int main(void) {
// CHECK: call void @_ZN1N4freeEPv
void *fp __attribute__((cleanup(N::free)));
return 0;
}