Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
heinsaar committed Oct 16, 2023
1 parent 16a2f84 commit d171a1d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_deref.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ void test_deref_verydeep_pointer_layers()
{
BEGIN_SUBTEST;
int _1 = 11;
auto _2 = &_1;
auto _3 = &_2;
auto _4 = &_3;
auto _5 = &_4;
auto _6 = &_5;
auto _7 = &_6; // and so on
auto _2 = &_1; // int*
auto _3 = &_2; // int**
auto _4 = &_3; // int***
auto _5 = &_4; // int****
auto _6 = &_5; // int*****
auto _7 = &_6; // int******
// and so on

ZEN_EXPECT(
zen::deref(_1) == 11 &&
Expand Down

0 comments on commit d171a1d

Please sign in to comment.