diff options
Diffstat (limited to 'test/unit/test_features.py')
-rw-r--r-- | test/unit/test_features.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/test_features.py b/test/unit/test_features.py index 968aaa252..2a0eca39b 100644 --- a/test/unit/test_features.py +++ b/test/unit/test_features.py @@ -131,6 +131,20 @@ class FeatureValidationTest(BinaryenTestCase): ''' self.check_tail_call(module, 'return_call requires tail calls to be enabled') + def test_tail_call_indirect(self): + module = ''' + (module + (type $T (func)) + (table $0 1 1 funcref) + (func $foo + (return_call_indirect (type $T) + (i32.const 0) + ) + ) + ) + ''' + self.check_tail_call(module, 'return_call_indirect requires tail calls to be enabled') + class TargetFeaturesSectionTest(BinaryenTestCase): def test_atomics(self): |