| Index: tests/corelib/int_from_environment2_test.dart
|
| diff --git a/tests/corelib/int_from_environment2_test.dart b/tests/corelib/int_from_environment2_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..87139b00e2626a1779b554360a8ed1a3e2ff1248
|
| --- /dev/null
|
| +++ b/tests/corelib/int_from_environment2_test.dart
|
| @@ -0,0 +1,14 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +// VMOptions=-Da=x -Db=- -Dc=0xg
|
| +
|
| +main(List<String> args) {
|
| + const int.fromEnvironment('a'); /// 01: compile-time error
|
| + const int.fromEnvironment('b'); /// 02: compile-time error
|
| + const int.fromEnvironment('c'); /// 03: compile-time error
|
| + const int.fromEnvironment('NOT_FOUND', defaultValue: ''); /// 04: compile-time error
|
| + const int.fromEnvironment('NOT_FOUND', defaultValue: true); /// 05: compile-time error
|
| + const int.fromEnvironment(1); /// 06: compile-time error
|
| + const int.fromEnvironment([]); /// 07: compile-time error
|
| +}
|
|
|