diff options
author | Ayke van Laethem <[email protected]> | 2019-02-05 00:48:56 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-02-05 17:37:55 +0100 |
commit | 709a2961507c0d28a86384c9867e6faec6b5d078 (patch) | |
tree | c617b870a72a26eec45e865ba2fc46a041f064f0 /testdata | |
parent | f7b2a2c977bcca51dfd359894f7116c447a88572 (diff) | |
download | tinygo-709a2961507c0d28a86384c9867e6faec6b5d078.tar.gz tinygo-709a2961507c0d28a86384c9867e6faec6b5d078.zip |
os: add basic OS functionality
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/stdlib.go | 12 | ||||
-rw-r--r-- | testdata/stdlib.txt | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/testdata/stdlib.go b/testdata/stdlib.go new file mode 100644 index 000000000..29c9c9e10 --- /dev/null +++ b/testdata/stdlib.go @@ -0,0 +1,12 @@ +package main + +import ( + "fmt" + "os" +) + +func main() { + fmt.Println("stdin: ", os.Stdin.Fd()) + fmt.Println("stdout:", os.Stdout.Fd()) + fmt.Println("stderr:", os.Stderr.Fd()) +} diff --git a/testdata/stdlib.txt b/testdata/stdlib.txt new file mode 100644 index 000000000..3db2f1874 --- /dev/null +++ b/testdata/stdlib.txt @@ -0,0 +1,3 @@ +stdin: 0 +stdout: 1 +stderr: 2 |