Skip to content

Commit

Permalink
Merge pull request #1719 from tsingbx/testdata
Browse files Browse the repository at this point in the history
add gop-sample testdata for test compiled fail
  • Loading branch information
xushiwei committed Feb 11, 2024
2 parents d22afd7 + eda9d04 commit 5de05db
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testdata/__gop-sample/a.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

func a() {
println("a")
}

func Ab() {
println("ab")
}
9 changes: 9 additions & 0 deletions testdata/__gop-sample/b.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
ab "gop-sample/cpkag/b"
)

a()
Ab()
ab.Ab()
5 changes: 5 additions & 0 deletions testdata/__gop-sample/cpkag/b/ab.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package ab

func Ab() {
println("ab")
}
5 changes: 5 additions & 0 deletions testdata/__gop-sample/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module gop-sample

go 1.21.5

toolchain go1.21.6
Empty file added testdata/__gop-sample/go.sum
Empty file.
5 changes: 5 additions & 0 deletions testdata/__gop-sample/gop.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module gop-sample

go 1.21

gop 1.1

0 comments on commit 5de05db

Please sign in to comment.