aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-10-22 16:19:46 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-10-22 16:19:46 +0000
commit94bf1a5fb73fc9c6a9bf9810c56b3f1678667f20 (patch)
tree124c67e5d8255d184b6c9eaf37420f4797cadc66 /gcc
parent89b925a66096923d0fc3c8c87bc357d3e0d96a2f (diff)
downloadgcc-94bf1a5fb73fc9c6a9bf9810c56b3f1678667f20.zip
gcc-94bf1a5fb73fc9c6a9bf9810c56b3f1678667f20.tar.gz
gcc-94bf1a5fb73fc9c6a9bf9810c56b3f1678667f20.tar.bz2
Update Go library to r60.3 release.
From-SVN: r180327
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/go.test/test/interface/fake.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/testsuite/go.test/test/interface/fake.go b/gcc/testsuite/go.test/test/interface/fake.go
index bdc5b90..ddb8325 100644
--- a/gcc/testsuite/go.test/test/interface/fake.go
+++ b/gcc/testsuite/go.test/test/interface/fake.go
@@ -12,20 +12,20 @@ package main
import "reflect"
type T struct {
- f float32
- g float32
+ F float32
+ G float32
- s string
- t string
+ S string
+ T string
- u uint32
- v uint32
+ U uint32
+ V uint32
- w uint32
- x uint32
+ W uint32
+ X uint32
- y uint32
- z uint32
+ Y uint32
+ Z uint32
}
func add(s, t string) string {
@@ -40,16 +40,16 @@ func assert(b bool) {
func main() {
var x T
- x.f = 1.0
- x.g = x.f
- x.s = add("abc", "def")
- x.t = add("abc", "def")
- x.u = 1
- x.v = 2
- x.w = 1 << 28
- x.x = 2 << 28
- x.y = 0x12345678
- x.z = x.y
+ x.F = 1.0
+ x.G = x.F
+ x.S = add("abc", "def")
+ x.T = add("abc", "def")
+ x.U = 1
+ x.V = 2
+ x.W = 1 << 28
+ x.X = 2 << 28
+ x.Y = 0x12345678
+ x.Z = x.Y
// check mem and string
v := reflect.ValueOf(x)