Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static local variable are not supported #8

Open
libing0526 opened this issue Nov 28, 2022 · 0 comments
Open

Static local variable are not supported #8

libing0526 opened this issue Nov 28, 2022 · 0 comments

Comments

@libing0526
Copy link

Static variable cannot be initialized:

class Test {
public:
	Test() {
		printf("Test:Test\n");
	}
	~Test() {
		printf("Test:~Test\n");
	}
};

int main()
{
	static Test tt;
	std::cout << "Hello World!\n";
	return 0;
}

output: Hello World!,doesn't have "Test:Test"

@libing0526 libing0526 changed the title Static variables are not supported Static local variable are not supported Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant