diff options
Diffstat (limited to 'gcc/testsuite/go.test/test/fixedbugs/bug206.go')
-rw-r--r-- | gcc/testsuite/go.test/test/fixedbugs/bug206.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug206.go b/gcc/testsuite/go.test/test/fixedbugs/bug206.go index 3879e8cbd57..7efc0b14afb 100644 --- a/gcc/testsuite/go.test/test/fixedbugs/bug206.go +++ b/gcc/testsuite/go.test/test/fixedbugs/bug206.go @@ -10,14 +10,14 @@ import "go/ast"; func g(list []ast.Expr) { n := len(list)-1; - println(list[n].Pos().Line); + println(list[n].Pos()); } // f is the same as g except that the expression assigned to n is inlined. func f(list []ast.Expr) { // n := len(list)-1; - println(list[len(list)-1 /* n */].Pos().Line); + println(list[len(list)-1 /* n */].Pos()); } |