2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s
|
2013-10-21 03:04:19 +08:00
|
|
|
|
|
|
|
namespace N {
|
|
|
|
void free(void *i) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
// CHECK: call void @_ZN1N4freeEPv
|
|
|
|
void *fp __attribute__((cleanup(N::free)));
|
|
|
|
return 0;
|
|
|
|
}
|