Index: test/codegen/expect/language/identical_const_test_05_multi.js |
diff --git a/test/codegen/expect/language/identical_const_test_05_multi.js b/test/codegen/expect/language/identical_const_test_05_multi.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..375d4abe56b639124d4cc430cbd9b89dd8ee687d |
--- /dev/null |
+++ b/test/codegen/expect/language/identical_const_test_05_multi.js |
@@ -0,0 +1,35 @@ |
+dart_library.library('language/identical_const_test_05_multi', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__identical_const_test_05_multi(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 identical_const_test_05_multi = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))(); |
+ identical_const_test_05_multi.f = function() { |
+ }; |
+ dart.fn(identical_const_test_05_multi.f, VoidTodynamic()); |
+ identical_const_test_05_multi.g = 1; |
+ identical_const_test_05_multi.identical_ff = core.identical(identical_const_test_05_multi.f, identical_const_test_05_multi.f); |
+ identical_const_test_05_multi.identical_fg = core.identical(identical_const_test_05_multi.f, identical_const_test_05_multi.g); |
+ identical_const_test_05_multi.identical_gf = core.identical(identical_const_test_05_multi.g, identical_const_test_05_multi.f); |
+ identical_const_test_05_multi.identical_gg = core.identical(identical_const_test_05_multi.g, identical_const_test_05_multi.g); |
+ identical_const_test_05_multi.a = dart.const(dart.map([true, 0])); |
+ identical_const_test_05_multi.b = dart.const(dart.map([false, 0])); |
+ identical_const_test_05_multi.use = function(x) { |
+ return x; |
+ }; |
+ dart.fn(identical_const_test_05_multi.use, dynamicTodynamic()); |
+ identical_const_test_05_multi.main = function() { |
+ identical_const_test_05_multi.use(identical_const_test_05_multi.a); |
+ identical_const_test_05_multi.use(identical_const_test_05_multi.b); |
+ expect$.Expect.isTrue(identical_const_test_05_multi.identical_ff); |
+ }; |
+ dart.fn(identical_const_test_05_multi.main, VoidTodynamic()); |
+ // Exports: |
+ exports.identical_const_test_05_multi = identical_const_test_05_multi; |
+}); |