Skip to content

Commit

Permalink
Update delegate0_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
oktonion committed Sep 16, 2024
1 parent fc30ddb commit d02c367
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/delegate0_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ struct Test
}

void call_const() const
{
func_called = true;
{ // to remove some optimizations done by MSVC compiler we write code 'func_called = true;' as following mess:
if (func_called)
func_called = func_called;
else
func_called = true;
}
void call2()
{
Expand Down

0 comments on commit d02c367

Please sign in to comment.