diff options
author | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-10-07 18:37:05 +0200 |
---|---|---|
committer | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-10-07 18:37:05 +0200 |
commit | 95d6c95c6b473015ba200bfd2a1083daf65bd21b (patch) | |
tree | 08f1c5ae578c9f62aa7dc6a940745a23ab7c62cb /test/fixedbugs/bug414.dir | |
parent | 6a8dd15db3b688d4a790bd24fe3537031d3a25ad (diff) | |
download | go-95d6c95c6b473015ba200bfd2a1083daf65bd21b.tar.gz |
test: use rundir and errorcheckdir for a few more tests.
Update issue 4139.
R=golang-dev, minux.ma
CC=golang-dev
http://codereview.appspot.com/6620070
Diffstat (limited to 'test/fixedbugs/bug414.dir')
-rw-r--r-- | test/fixedbugs/bug414.dir/main.go | 18 | ||||
-rw-r--r-- | test/fixedbugs/bug414.dir/p1.go | 34 | ||||
-rw-r--r-- | test/fixedbugs/bug414.dir/prog.go | 18 |
3 files changed, 35 insertions, 35 deletions
diff --git a/test/fixedbugs/bug414.dir/main.go b/test/fixedbugs/bug414.dir/main.go deleted file mode 100644 index 52001233c..000000000 --- a/test/fixedbugs/bug414.dir/main.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2012 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 main - - import "./p1" - - type MyObject struct { - p1.Fer - } - - func main() { - var b p1.Fer = &p1.Object{} - p1.PrintFer(b) - var c p1.Fer = &MyObject{b} - p1.PrintFer(c) - } diff --git a/test/fixedbugs/bug414.dir/p1.go b/test/fixedbugs/bug414.dir/p1.go index 7768818bf..246383484 100644 --- a/test/fixedbugs/bug414.dir/p1.go +++ b/test/fixedbugs/bug414.dir/p1.go @@ -2,20 +2,20 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. - package p1 - - import "fmt" - - type Fer interface { - f() string - } - - type Object struct {} - - func (this *Object) f() string { - return "Object.f" - } - - func PrintFer(fer Fer) { - fmt.Sprintln(fer.f()) - } +package p1 + +import "fmt" + +type Fer interface { + f() string +} + +type Object struct{} + +func (this *Object) f() string { + return "Object.f" +} + +func PrintFer(fer Fer) { + fmt.Sprintln(fer.f()) +} diff --git a/test/fixedbugs/bug414.dir/prog.go b/test/fixedbugs/bug414.dir/prog.go new file mode 100644 index 000000000..f55d94696 --- /dev/null +++ b/test/fixedbugs/bug414.dir/prog.go @@ -0,0 +1,18 @@ +// Copyright 2012 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 main + +import "./p1" + +type MyObject struct { + p1.Fer +} + +func main() { + var b p1.Fer = &p1.Object{} + p1.PrintFer(b) + var c p1.Fer = &MyObject{b} + p1.PrintFer(c) +} |