Skip to content

Commit

Permalink
Dim Byref: Test initializing a reference from another one
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed May 19, 2015
1 parent 892f5d7 commit d5b4bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/dim/byref.bas
Expand Up @@ -21,6 +21,10 @@ namespace simpleVars
CU_ASSERT( r1 = 456 ) : CU_ASSERT( @r1 = @i )
CU_ASSERT( r2 = 456 ) : CU_ASSERT( @r2 = @i )
CU_ASSERT( r3 = 456 ) : CU_ASSERT( @r3 = @i )

'' Initialized from other reference
dim byref ri2 as integer = ri
CU_ASSERT( ri2 = 456 ) : CU_ASSERT( @ri2 = @i )
end sub
end namespace

Expand Down

0 comments on commit d5b4bd1

Please sign in to comment.