Skip to content

Commit

Permalink
add extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Jul 17, 2024
1 parent f9d8e59 commit 9e98232
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/resources/regressions/issues/000491-2.gobra
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

package main

type Pair struct {
x int
y int
}

func f(p *Pair) (r *int) {
//:: ExpectedOutput(load_error:receiver_is_nil_error)
r = &p.x
return
}

0 comments on commit 9e98232

Please sign in to comment.