@@ -10275,20 +10275,30 @@ def verify_features_sec(feature, expect_in):
10275
10275
else:
10276
10276
self.assertFalse(feature in features)
10277
10277
10278
- def compile(flag ):
10279
- self.run_process([EMCC, test_file('hello_world.c'), '-c', flag] )
10278
+ def compile(flags ):
10279
+ self.run_process([EMCC, test_file('hello_world.c'), '-c'] + flags )
10280
10280
10281
- compile('' )
10281
+ compile([] )
10282
10282
verify_features_sec('bulk-memory', False)
10283
10283
verify_features_sec('nontrapping-fptoint', False)
10284
10284
verify_features_sec('sign-ext', True)
10285
10285
verify_features_sec('mutable-globals', True)
10286
10286
verify_features_sec('multivalue', True)
10287
+ verify_features_sec('reference-types', True)
10287
10288
10288
- compile('-sMIN_SAFARI_VERSION=150000')
10289
+ compile(['-mnontrapping-fptoint'])
10290
+ verify_features_sec('nontrapping-fptoint', True)
10291
+
10292
+ compile(['-sMIN_SAFARI_VERSION=150000'])
10293
+ verify_features_sec('sign-ext', True)
10294
+ verify_features_sec('mutable-globals', True)
10295
+ verify_features_sec('multivalue', True)
10289
10296
verify_features_sec('bulk-memory', True)
10290
10297
verify_features_sec('nontrapping-fptoint', True)
10291
10298
10299
+ compile(['-sMIN_SAFARI_VERSION=150000', '-mno-bulk-memory'])
10300
+ verify_features_sec('bulk-memory', False)
10301
+
10292
10302
def test_js_preprocess(self):
10293
10303
# Use stderr rather than stdout here because stdout is redirected to the output JS file itself.
10294
10304
create_file('lib.js', '''
0 commit comments