MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test_bitcode_linking

Method test_bitcode_linking

test/test_other.py:5105–5112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5103 self.assertEqual(get_code_section_size('test1.wasm'), get_code_section_size('test2.wasm'))
5104
5105 def test_bitcode_linking(self):
5106 # emcc used to be able to link bitcode together, but these days partial linking
5107 # always outputs an object file.
5108 self.run_process([EMCC, '-flto', '-c', test_file('hello_world.c')])
5109 self.assertExists('hello_world.o')
5110 self.run_process([EMCC, '-flto', '-r', 'hello_world.o', '-o', 'hello_world2.o'])
5111 is_bitcode('hello_world.o')
5112 building.is_wasm('hello_world2.o')
5113
5114 @parameterized({
5115 '': ([],),

Callers

nothing calls this directly

Calls 5

test_fileFunction · 0.90
is_bitcodeFunction · 0.85
run_processMethod · 0.80
assertExistsMethod · 0.80
is_wasmMethod · 0.80

Tested by

no test coverage detected