| # Copyright (c) 2021, 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.md file. |
| |
| # Reproduce a crash. |
| |
| type: newworld |
| worlds: |
| - entry: main.dart |
| experiments: non-nullable |
| sources: |
| main.dart: | |
| import 'dart:ffi'; |
| import 'lib.dart'; |
| class X extends Struct { |
| external Y xx; |
| } |
| lib.dart: | |
| import 'dart:ffi'; |
| class Y extends Struct { |
| @Uint32() |
| external int yy; |
| } |
| expectedLibraryCount: 2 |
| |
| - entry: main.dart |
| experiments: non-nullable |
| worldType: updated |
| expectInitializeFromDill: false |
| invalidate: |
| - main.dart |
| expectedLibraryCount: 2 |
| expectsRebuildBodiesOnly: false |