mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 05:23:20 +00:00
34 lines
556 B
Nim
34 lines
556 B
Nim
discard """
|
|
output: '''
|
|
start ta_out
|
|
to stdout
|
|
to stdout
|
|
to stderr
|
|
to stderr
|
|
to stdout
|
|
to stdout
|
|
end ta_out
|
|
'''
|
|
"""
|
|
|
|
echo "start ta_out"
|
|
|
|
# This file is prefixed with an "a", because other tests
|
|
# depend on it and it must be compiled first.
|
|
stdout.writeLine("to stdout")
|
|
stdout.flushFile()
|
|
stdout.writeLine("to stdout")
|
|
stdout.flushFile()
|
|
|
|
stderr.writeLine("to stderr")
|
|
stderr.flushFile()
|
|
stderr.writeLine("to stderr")
|
|
stderr.flushFile()
|
|
|
|
stdout.writeLine("to stdout")
|
|
stdout.flushFile()
|
|
stdout.writeLine("to stdout")
|
|
stdout.flushFile()
|
|
|
|
echo "end ta_out"
|