github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/compiler/testdata/defer.go (about) 1 package main 2 3 func external() 4 5 func deferSimple() { 6 defer func() { 7 print(3) 8 }() 9 external() 10 } 11 12 func deferMultiple() { 13 defer func() { 14 print(3) 15 }() 16 defer func() { 17 print(5) 18 }() 19 external() 20 }