//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // class codecvt_utf16 // : public codecvt // { // // unspecified // }; // Not a portable test #include #include #include #include "count_new.hpp" int main() { assert(globalMemCounter.checkOutstandingNewEq(0)); { typedef std::codecvt_utf16 C; C c; assert(globalMemCounter.checkOutstandingNewEq(0)); } { typedef std::codecvt_utf16 C; std::locale loc(std::locale::classic(), new C); assert(globalMemCounter.checkOutstandingNewNotEq(0)); } assert(globalMemCounter.checkOutstandingNewEq(0)); }