Fixes #23962 resetLocdoenst produce any cgen code in importcpp types (#23964)

This commit is contained in:
Juan M Gómez
2024-08-18 12:21:17 +01:00
committed by GitHub
parent f7c11a8978
commit 2e4d344b43
3 changed files with 53 additions and 1 deletions

17
tests/cpp/23962.h Normal file
View 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;
};