summaryrefslogtreecommitdiff
path: root/test/inline.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/inline.go')
-rw-r--r--test/inline.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/inline.go b/test/inline.go
index 04ba16858f..cf2cd8cd60 100644
--- a/test/inline.go
+++ b/test/inline.go
@@ -10,6 +10,7 @@
package foo
import (
+ "errors"
"runtime"
"unsafe"
)
@@ -55,6 +56,8 @@ func f2() int { // ERROR "can inline f2"
return tmp2(0) // ERROR "inlining call to h"
}
+var abc = errors.New("abc") // ERROR "inlining call to errors.New"
+
var somethingWrong error
// local closures can be inlined