OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [initsyscall.go] - Blame information for rev 700

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
// $G $D/$F.go && $L $F.$A && ./$A.out
2
 
3
// Copyright 2009 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
// This used to crash because the scheduler
8
// tried to kick off a new scheduling thread for f
9
// when time.Nanoseconds went into the system call.
10
// It's not okay to schedule new goroutines
11
// until main has started.
12
 
13
package main
14
 
15
import "time"
16
 
17
func f() {
18
}
19
 
20
func init() {
21
        go f()
22
        time.Now()
23
}
24
 
25
func main() {
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.