Skip to content

Add test for defining an alias to a function-like macro - #262

Open
martis42 wants to merge 1 commit into
boostorg:developfrom
martis42:ensure_aliasing_function_macros_works
Open

martis42 wants to merge 1 commit into
boostorg:developfrom
martis42:ensure_aliasing_function_macros_works

Conversation

@martis42

Copy link
Copy Markdown

No description provided.

//H 10: t_2_033.cpp(19): #else

// Verify we did not take the desired branch by chance
#if SQUARE_FUNCTION_ALIAS(3) == 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be something like SQUARE_FUNCTION_ALIAS(3) != 9? This test will confirm that the calculation does not produce an incorrect value of 1, but there are many other incorrect values it could produce and still pass.

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.

2 participants