Files
Nim/tests/cpp/23962.h

17 lines
246 B
C++

#include <iostream>
struct Foo {
Foo(int inX): x(inX) {
std::cout << "Ctor Foo(" << x << ")\n";
}
~Foo() {
std::cout << "Destory Foo(" << x << ")\n";
}
void print() {
std::cout << "Foo.x = " << x << '\n';
}
int x;
};