OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import "dart:io"; |
| 6 |
| 7 void main(List<String> arguments) { |
| 8 // Access stdout and stderr so that the system grabs a handle to it. This |
| 9 // initializes some internal structures. |
| 10 if (stdout.hashCode == -1234 && stderr.hashCode == (stderr.hashCode + 1)) { |
| 11 throw "we have other problems."; |
| 12 } |
| 13 |
| 14 if (arguments.contains("stdout")) { |
| 15 stdout.close(); |
| 16 } |
| 17 if (arguments.contains("stderr")) { |
| 18 stderr.close(); |
| 19 } |
| 20 } |
OLD | NEW |