@also_with_impure_standalone_wasm
def test_undefined_main(self):
    if ((not self.get_setting('LLD_REPORT_UNDEFINED')) and (not self.get_setting('STRICT')) and (not self.get_setting('STANDALONE_WASM'))):
        self.do_run_in_out_file_test('tests', 'core', 'test_ctors_no_main')
        self.set_setting('IGNORE_MISSING_MAIN', 0)
        err = self.expect_fail(([EMCC, path_from_root('tests', 'core', 'test_ctors_no_main.cpp')] + self.get_emcc_args()))
        self.assertContained('error: entry symbol not defined (pass --no-entry to suppress): main', err)
    self.emcc_args.append('--no-entry')
    self.do_run_in_out_file_test('tests', 'core', 'test_ctors_no_main')
    self.emcc_args.remove('--no-entry')
    self.set_setting('EXPORTED_FUNCTIONS', [])
    self.do_run_in_out_file_test('tests', 'core', 'test_ctors_no_main')
@also_with_impure_standalone_wasm
def test_undefined_main(self):
    if ((not self.get_setting('LLD_REPORT_UNDEFINED')) and (not self.get_setting('STRICT')) and (not self.get_setting('STANDALONE_WASM'))):
        self.do_run_in_out_file_test('tests', 'core', 'test_ctors_no_main')
        self.set_setting('IGNORE_MISSING_MAIN', 0)
        err = self.expect_fail(([EMCC, path_from_root('tests', 'core', 'test_ctors_no_main.cpp')] + self.get_emcc_args()))
        self.assertContained('error: entry symbol not defined (pass --no-entry to suppress): main', err)
    self.emcc_args.append('--no-entry')
    self.do_run_in_out_file_test('tests', 'core', 'test_ctors_no_main')
    self.emcc_args.remove('--no-entry')
    self.set_setting('EXPORTED_FUNCTIONS', [])
    self.do_run_in_out_file_test('tests', 'core', 'test_ctors_no_main')