Skip to content

cgen: allow asserts inside fn calls on const/global initialization in test files - #24031

Merged
spytheman merged 1 commit into
vlang:masterfrom
felipensp:fix_test_global_init
Mar 24, 2025
Merged

spytheman merged 1 commit into
vlang:masterfrom
felipensp:fix_test_global_init

Conversation

@felipensp

Copy link
Copy Markdown
Member

Fix #24029

@spytheman spytheman changed the title cgen: fix codgen to allow assert inside fn call on const/global initialization cgen: allow asserts inside fn calls on const/global initialization in test files Mar 24, 2025

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman
spytheman merged commit 4422662 into vlang:master Mar 24, 2025
@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22424

@felipensp
felipensp deleted the fix_test_global_init branch March 24, 2025 12:30
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

Successfully merging this pull request may close these issues.

tester: const init function with assert in it, will cause tester crash

2 participants