test: add new Go tests from source repo

This commit is contained in:
Ian Lance Taylor 2021-01-07 11:02:02 -08:00
parent c8d2ed112e
commit b87ec922c4
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package Äfoo
var ÄbarV int = 101
func Äbar(x int) int {
defer func() { ÄbarV += 3 }()
return Äblix(x)
}
func Äblix(x int) int {
defer func() { ÄbarV += 9 }()
return ÄbarV + x
}

View File

@ -0,0 +1,13 @@
package main
import (
"fmt"
"./Äfoo"
Äblix "./Äfoo"
)
func main() {
fmt.Printf("Äfoo.Äbar(33) returns %v\n", Äfoo.Äbar(33))
fmt.Printf("Äblix.Äbar(33) returns %v\n", Äblix.Äbar(33))
}

View File

@ -0,0 +1,7 @@
// compiledir
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ignored