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

support function instruction #894

Merged
merged 3 commits into from Nov 15, 2021
Merged

support function instruction #894

merged 3 commits into from Nov 15, 2021

Conversation

xushiwei
Copy link
Member

@xushiwei xushiwei commented Nov 15, 2021

#808: function instruction

@xushiwei xushiwei merged commit f7ac2c9 into goplus:main Nov 15, 2021
func TestGoInstr(t *testing.T) {
gopClTest(t, `package main

//go:noinline
Copy link

@tandr tandr Nov 17, 2021

Choose a reason for hiding this comment

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

since you are testing the parser, it might be a good idea to add a case where go:something is not at the beginning for the comment, like // followed by the space // go:something, or end of the line comment with a:=0 //go:something, or it is a the beginning of /* comment

/*go:something
*/
func dummy() {}

etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

thx

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.

None yet

2 participants