zig/test/link/macho/unwind_info/simple_string_owner.cpp

13 lines
278 B
C++

#include "all.h"
SimpleStringOwner::SimpleStringOwner(const char* x) : string{ 10 } {
if (!string.append_line(x)) {
throw Error{ "Not enough memory!" };
}
string.print("Constructed");
}
SimpleStringOwner::~SimpleStringOwner() {
string.print("About to destroy");
}