1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc namespace N { free(void * i)4f4a2713aSLionel Sambuc void free(void *i) {} 5f4a2713aSLionel Sambuc } 6f4a2713aSLionel Sambuc main(void)7f4a2713aSLionel Sambucint main(void) { 8f4a2713aSLionel Sambuc // CHECK: call void @_ZN1N4freeEPv 9f4a2713aSLionel Sambuc void *fp __attribute__((cleanup(N::free))); 10f4a2713aSLionel Sambuc return 0; 11f4a2713aSLionel Sambuc } 12