blob: d63e4816e6383a60b8ef2b514f9b1b1910dd4bdb [file] [log] [blame]
// Copyright (c) 2019, 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
// Verifies that unused object allocation doesn't cause crashes
// during SSA construction in AOT.
import 'package:expect/expect.dart';
class A {
int foo() => 42;
A a = new A();
int? y;
class B {
B(int x) {
y = x;
main() {
Expect.equals(42, y);