mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-28 21:35:58 +08:00
test: add new Go tests from source repo
This commit is contained in:
parent
c8d2ed112e
commit
b87ec922c4
13
gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go
Normal file
13
gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go
Normal 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
|
||||
}
|
13
gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Ämain.go
Normal file
13
gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Ämain.go
Normal 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))
|
||||
}
|
7
gcc/testsuite/go.test/test/fixedbugs/issue27836.go
Normal file
7
gcc/testsuite/go.test/test/fixedbugs/issue27836.go
Normal 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
|
Loading…
Reference in New Issue
Block a user