Skip to content

Commit

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

void call_const(int) 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;
}

virtual void v_func(int)
Expand Down

0 comments on commit fc6c256

Please sign in to comment.