Index: test/codegen/expect/language/do_while3_test.js |
diff --git a/test/codegen/expect/language/do_while3_test.js b/test/codegen/expect/language/do_while3_test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5560ff0be198fec3ee8f60e0aaec3d25c1c91021 |
--- /dev/null |
+++ b/test/codegen/expect/language/do_while3_test.js |
@@ -0,0 +1,22 @@ |
+dart_library.library('language/do_while3_test', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__do_while3_test(exports, dart_sdk, expect) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const expect$ = expect.expect; |
+ const do_while3_test = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ do_while3_test.main = function() { |
+ let c = 0; |
+ do { |
+ c++; |
+ } while (c++ < 2); |
+ expect$.Expect.equals(4, c); |
+ }; |
+ dart.fn(do_while3_test.main, VoidTodynamic()); |
+ // Exports: |
+ exports.do_while3_test = do_while3_test; |
+}); |