summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/input/anyref_target_feature.wasmbin60 -> 0 bytes
-rw-r--r--test/unit/input/gc_target_feature.wasmbin0 -> 56 bytes
-rw-r--r--test/unit/test_features.py18
3 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/input/anyref_target_feature.wasm b/test/unit/input/anyref_target_feature.wasm
deleted file mode 100644
index 88c61ebc2..000000000
--- a/test/unit/input/anyref_target_feature.wasm
+++ /dev/null
Binary files differ
diff --git a/test/unit/input/gc_target_feature.wasm b/test/unit/input/gc_target_feature.wasm
new file mode 100644
index 000000000..cd094ca3a
--- /dev/null
+++ b/test/unit/input/gc_target_feature.wasm
Binary files differ
diff --git a/test/unit/test_features.py b/test/unit/test_features.py
index 2b5b00469..dca3d33b9 100644
--- a/test/unit/test_features.py
+++ b/test/unit/test_features.py
@@ -49,9 +49,9 @@ class FeatureValidationTest(utils.BinaryenTestCase):
['--enable-exception-handling',
'--enable-reference-types'])
- def check_anyref(self, module, error):
- # Anyref handling implies reference types
- self.check_feature(module, error, '--enable-anyref',
+ def check_gc(self, module, error):
+ # GC implies reference types
+ self.check_feature(module, error, '--enable-gc',
['--enable-reference-types'])
def test_v128_signature(self):
@@ -264,7 +264,7 @@ class FeatureValidationTest(utils.BinaryenTestCase):
(global $foo anyref (ref.null any))
)
'''
- self.check_anyref(module, 'all used types should be allowed')
+ self.check_gc(module, 'all used types should be allowed')
def test_anyref_local(self):
module = '''
@@ -274,7 +274,7 @@ class FeatureValidationTest(utils.BinaryenTestCase):
)
)
'''
- self.check_anyref(module, 'all used types should be allowed')
+ self.check_gc(module, 'all used types should be allowed')
class TargetFeaturesSectionTest(utils.BinaryenTestCase):
@@ -333,10 +333,10 @@ class TargetFeaturesSectionTest(utils.BinaryenTestCase):
self.check_features(filename, ['exception-handling', 'reference-types'])
self.assertIn('throw', self.disassemble(filename))
- def test_anyref(self):
- filename = 'anyref_target_feature.wasm'
+ def test_gc(self):
+ filename = 'gc_target_feature.wasm'
self.roundtrip(filename)
- self.check_features(filename, ['reference-types', 'anyref'])
+ self.check_features(filename, ['reference-types', 'gc'])
self.assertIn('anyref', self.disassemble(filename))
def test_incompatible_features(self):
@@ -387,5 +387,5 @@ class TargetFeaturesSectionTest(utils.BinaryenTestCase):
'--enable-tail-call',
'--enable-reference-types',
'--enable-multivalue',
- '--enable-anyref'
+ '--enable-gc'
], p2.stdout.splitlines())