Add regression tests from Luke's bug reports. Part 2.

R=paulberry@google.com

Review-Url: https://codereview.chromium.org/2959463003 .
This commit is contained in:
Peter von der Ahé 2017-06-23 14:37:26 +02:00
parent 7b60c094d7
commit 03aad06299
21 changed files with 167 additions and 10 deletions

View file

@ -349,10 +349,19 @@ rasta/unresolved_constructor: Fail
rasta/unresolved_for_in: Fail
rasta/unresolved_recovery: Fail
regress/issue_29937: Crash # Issue 29937.
regress/issue_29940: Crash # Issue 29940.
regress/issue_29941: Crash # Issue 29941.
regress/issue_29942: Crash # Issue 29942.
regress/issue_29943: Crash # Issue 29943.
regress/issue_29944: Crash # Issue 29944.
regress/issue_29945: Crash # Issue 29945.
regress/issue_29975: Fail # Issue 29975.
regress/issue_29976: Crash # Issue 29976.
regress/issue_29977: Crash # Issue 29977.
regress/issue_29978: Crash # Issue 29978.
regress/issue_29979: Crash # Issue 29979.
regress/issue_29980: Crash # Issue 29980.
regress/issue_29981: Crash # Issue 29981.
regress/issue_29982: Crash # Issue 29982.
regress/issue_29983: Crash # Issue 29983.

View file

@ -485,13 +485,22 @@ rasta/unresolved_constructor: Crash
rasta/unresolved_for_in: Crash
rasta/unresolved_recovery: Fail
regress/issue_29975: Fail # Issue 29975.
regress/issue_29976: Crash # Issue 29976.
regress/issue_29977: Crash # Issue 29977.
regress/issue_29979: Crash # Issue 29979.
regress/issue_29981: Crash # Issue 29981.
regress/issue_29982: Crash # Issue 29982.
regress/issue_29984: RuntimeError # Issue 29984.
regress/issue_29985: Crash # Issue 29985.
regress/issue_29986: Crash # Issue 29986.
regress/issue_29987: Crash # Issue 29987.
regress/issue_29937: Crash
regress/issue_29940: Crash
regress/issue_29941: Crash
regress/issue_29942: Crash
regress/issue_29943: Crash
regress/issue_29944: Crash
regress/issue_29945: Crash
regress/issue_29975: Fail
regress/issue_29976: Crash
regress/issue_29977: Crash
regress/issue_29978: Crash
regress/issue_29979: Crash
regress/issue_29980: Crash
regress/issue_29981: Crash
regress/issue_29982: Crash
regress/issue_29984: RuntimeError
regress/issue_29985: Crash
regress/issue_29986: Crash
regress/issue_29987: Crash

View file

@ -0,0 +1,7 @@
// Copyright (c) 2017, 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.
main() {
[f() {}];
}

View file

@ -0,0 +1,5 @@
library;
import self as self;
static method main() → dynamic
;

View file

@ -0,0 +1,8 @@
// Copyright (c) 2017, 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.
main() {
var a = "";
a.b c = null;
}

View file

@ -0,0 +1,5 @@
library;
import self as self;
static method main() → dynamic
;

View file

@ -0,0 +1,8 @@
// Copyright (c) 2017, 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.
main() {
var a = "";
a."";
}

View file

@ -0,0 +1,5 @@
library;
import self as self;
static method main() → dynamic
;

View file

@ -0,0 +1,10 @@
// Copyright (c) 2017, 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.
main() {
}
f() =
h() => null;

View file

@ -0,0 +1,7 @@
library;
import self as self;
static method main() → dynamic
;
static method f() → dynamic
;

View file

@ -0,0 +1,7 @@
// Copyright (c) 2017, 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.
main() {
x.(null);
}

View file

@ -0,0 +1,5 @@
library;
import self as self;
static method main() → dynamic
;

View file

@ -0,0 +1,12 @@
// Copyright (c) 2017, 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.
class C {
C();
var C;
}
main() {
new C();
}

View file

@ -0,0 +1,11 @@
library;
import self as self;
import "dart:core" as core;
class C extends core::Object {
field dynamic C;
constructor •() → void
;
}
static method main() → dynamic
;

View file

@ -0,0 +1,7 @@
// Copyright (c) 2017, 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.
main() {
s.bool x = null;
}

View file

@ -0,0 +1,5 @@
library;
import self as self;
static method main() → dynamic
;

View file

@ -0,0 +1,9 @@
// Copyright (c) 2017, 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.
foo(a, b) => null;
main() {
foo(null, f() {});
}

View file

@ -0,0 +1,7 @@
library;
import self as self;
static method foo(dynamic a, dynamic b) → dynamic
;
static method main() → dynamic
;

View file

@ -0,0 +1,7 @@
// Copyright (c) 2017, 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.
main() {
x.y z;
}

View file

@ -0,0 +1,5 @@
library;
import self as self;
static method main() → dynamic
;

View file

@ -159,10 +159,19 @@ rasta/unresolved_for_in: Fail
rasta/unresolved_recovery: Fail
rasta/unsupported_platform_library: Fail
regress/issue_29937: Crash # Issue 29937.
regress/issue_29940: Crash # Issue 29940.
regress/issue_29941: Crash # Issue 29941.
regress/issue_29942: Crash # Issue 29942.
regress/issue_29943: Crash # Issue 29943.
regress/issue_29944: Crash # Issue 29944.
regress/issue_29945: Crash # Issue 29945.
regress/issue_29975: Fail # Issue 29975.
regress/issue_29976: Crash # Issue 29976.
regress/issue_29977: Crash # Issue 29977.
regress/issue_29978: Crash # Issue 29978.
regress/issue_29979: Crash # Issue 29979.
regress/issue_29980: Crash # Issue 29980.
regress/issue_29981: Crash # Issue 29981.
regress/issue_29982: Crash # Issue 29982.
regress/issue_29983: Crash # Issue 29983.