mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 18:53:58 +00:00
This commit is contained in:
17
tests/cpp/23962.h
Normal file
17
tests/cpp/23962.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user