Skip to content

Commit 4c53dd6

Browse files
alexmarkovCommit Queue
authored andcommitted
[vm/aot] Add kernel AST verification to TFA transformer test
TEST=pkg/vm/test/transformations/type_flow/transformer_test.dart Change-Id: I491443e84fe94825604708c0ecb8e8e518e35a6f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401642 Auto-Submit: Alexander Markov <[email protected]> Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent b961fa0 commit 4c53dd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/vm/test/transformations/type_flow/transformer_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import 'package:kernel/ast.dart';
1212
import 'package:kernel/core_types.dart';
1313
import 'package:kernel/kernel.dart';
1414
import 'package:kernel/target/targets.dart';
15+
import 'package:kernel/verifier.dart';
1516
import 'package:test/test.dart';
1617
import 'package:vm/modular/target/install.dart' show installAdditionalTargets;
1718
import 'package:vm/transformations/pragma.dart'
@@ -87,6 +88,9 @@ void runTestCase(
8788

8889
compareResultWithExpectationsFile(source, actual);
8990

91+
verifyComponent(
92+
target, VerificationStage.afterGlobalTransformations, component);
93+
9094
ensureKernelCanBeSerializedToBinary(component);
9195
}
9296

0 commit comments

Comments
 (0)