mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:20:31 +00:00
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:
parent
7b60c094d7
commit
03aad06299
21 changed files with 167 additions and 10 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
7
pkg/front_end/testcases/regress/issue_29937.dart
Normal file
7
pkg/front_end/testcases/regress/issue_29937.dart
Normal 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() {}];
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
8
pkg/front_end/testcases/regress/issue_29940.dart
Normal file
8
pkg/front_end/testcases/regress/issue_29940.dart
Normal 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;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
8
pkg/front_end/testcases/regress/issue_29941.dart
Normal file
8
pkg/front_end/testcases/regress/issue_29941.dart
Normal 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."";
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
10
pkg/front_end/testcases/regress/issue_29942.dart
Normal file
10
pkg/front_end/testcases/regress/issue_29942.dart
Normal 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;
|
|
@ -0,0 +1,7 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
||||
static method f() → dynamic
|
||||
;
|
7
pkg/front_end/testcases/regress/issue_29943.dart
Normal file
7
pkg/front_end/testcases/regress/issue_29943.dart
Normal 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);
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
12
pkg/front_end/testcases/regress/issue_29944.dart
Normal file
12
pkg/front_end/testcases/regress/issue_29944.dart
Normal 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();
|
||||
}
|
|
@ -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
|
||||
;
|
7
pkg/front_end/testcases/regress/issue_29945.dart
Normal file
7
pkg/front_end/testcases/regress/issue_29945.dart
Normal 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;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
9
pkg/front_end/testcases/regress/issue_29978.dart
Normal file
9
pkg/front_end/testcases/regress/issue_29978.dart
Normal 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() {});
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method foo(dynamic a, dynamic b) → dynamic
|
||||
;
|
||||
static method main() → dynamic
|
||||
;
|
7
pkg/front_end/testcases/regress/issue_29980.dart
Normal file
7
pkg/front_end/testcases/regress/issue_29980.dart
Normal 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;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
library;
|
||||
import self as self;
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue