From fedee176c69a29298852466456cac762c6fb0ea6 Mon Sep 17 00:00:00 2001 From: "kasperl@google.com" Date: Thu, 4 Apr 2013 07:37:08 +0000 Subject: [PATCH] Add crashing test case for for dartbug.com/9664. R=erikcorry@google.com BUG= Review URL: https://codereview.chromium.org//13621002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20909 260f80e4-7a28-3924-810f-c04153c831b5 --- tests/language/issue9664_test.dart | 9 +++++++++ tests/language/language_dart2js.status | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 tests/language/issue9664_test.dart diff --git a/tests/language/issue9664_test.dart b/tests/language/issue9664_test.dart new file mode 100644 index 00000000000..b8b3c2db6b6 --- /dev/null +++ b/tests/language/issue9664_test.dart @@ -0,0 +1,9 @@ +// 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. + +// Regression test for http://dartbug.com/9664 + +main() { + while (true ? true : true) break; +} diff --git a/tests/language/language_dart2js.status b/tests/language/language_dart2js.status index 9f283098902..68028243a2a 100644 --- a/tests/language/language_dart2js.status +++ b/tests/language/language_dart2js.status @@ -130,6 +130,8 @@ getter_no_setter_test/01: Fail # http://dartbug.com/5519 isnot_malformed_type_test/01: Fail # http://dartbug.com/5519 not_enough_positional_arguments_test/01: Fail # http://dartbug.com/5519 +issue9664_test: Crash # http://dartbug.com/9664 + constructor_negative_test: Pass # Wrong reason: the expression 'C()' is valid with class literals. throw_expr_test: Fail