File: issue1101.go

package info (click to toggle)
delve 1.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,136 kB
  • sloc: ansic: 111,947; sh: 194; asm: 147; makefile: 43; python: 23
file content (20 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import (
	"os"
	"sync"
)

var wg sync.WaitGroup

func f(from string) {
	defer wg.Done()
	return
}

func main() {
	wg.Add(1)
	go f("goroutine")
	wg.Wait()
	os.Exit(2)
}