forked from mmcloughlin/avo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: load package in LoadAllSyntax mode (mmcloughlin#63)
Fixes mmcloughlin#62
- Loading branch information
1 parent
9eb409b
commit 3cfe40e
Showing
5 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// +build ignore | ||
|
||
package main | ||
|
||
import ( | ||
. "github.com/mmcloughlin/avo/build" | ||
) | ||
|
||
func main() { | ||
Package("github.com/mmcloughlin/avo/tests/fixedbugs/issue62") | ||
Implement("private") | ||
RET() | ||
Generate() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Code generated by command: go run asm.go -out issue62.s. DO NOT EDIT. | ||
|
||
// func private() | ||
TEXT ·private(SB), $0 | ||
RET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package issue62 | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
//go:generate go run asm.go -out issue62.s | ||
|
||
func TestPrivate(t *testing.T) { | ||
private() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Package issue62 tests for using Implement() with an unexported function. | ||
package issue62 | ||
|
||
// private serves as an example unexported function to implement. | ||
func private() |