aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/stack.go')
-rw-r--r--test/codegen/stack.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/codegen/stack.go b/test/codegen/stack.go
index ca37622286..37d378aa78 100644
--- a/test/codegen/stack.go
+++ b/test/codegen/stack.go
@@ -109,3 +109,8 @@ func MightPanic(a []int, i, j, k, s int) {
_ = i << s // panicShift
_ = i / j // panicDivide
}
+
+func Defer() {
+ // amd64:`CALL\truntime\.deferprocStack`
+ defer func() {}()
+}