test/fixedbugs/issue29304.go
raw| 1 | // run |
| 2 | |
| 3 | // Copyright 2018 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | // Verify that relocation target go.builtin.error.Error |
| 8 | // is defined and the code links and runs correctly. |
| 9 | |
| 10 | package main |
| 11 | |
| 12 | import "errors" |
| 13 | |
| 14 | func main() { |
| 15 | err := errors.New("foo") |
| 16 | if error.Error(err) != "foo" { |
| 17 | panic("FAILED") |
| 18 | } |
| 19 | } |