Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / sigchld.go
1 // [ "$GOOS" == windows ] ||
2 // ($G $D/$F.go && $L $F.$A && ./$A.out 2>&1 | cmp - $D/$F.out)
3
4 // NOTE: This test is not run by 'run.go' and so not run by all.bash.
5 // To run this test you must use the ./run shell script.
6
7 // Copyright 2009 The Go Authors. All rights reserved.
8 // Use of this source code is governed by a BSD-style
9 // license that can be found in the LICENSE file.
10
11 // Test that a program can survive SIGCHLD.
12
13 package main
14
15 import "syscall"
16
17 func main() {
18         syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
19         println("survived SIGCHLD")
20 }