//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <memory>
// unique_ptr
// test get_deleter()
#include<memory>#include<cassert>structDeleter{voidoperator()(void*){}inttest(){return5;}inttest()const{return6;}};intmain(){{std::unique_ptr<int[],Deleter>p;assert(p.get_deleter().test()==5);}{conststd::unique_ptr<int[],Deleter>p;assert(p.get_deleter().test()==6);}}