diff --git a/testsuite/tests/ffi/should_compile/all.T b/testsuite/tests/ffi/should_compile/all.T
index d33358dc24b16f1537a14cb444d326601ebd5cce..cd0f66cd48f398d69f3a88adf1363551e600be7e 100644
--- a/testsuite/tests/ffi/should_compile/all.T
+++ b/testsuite/tests/ffi/should_compile/all.T
@@ -45,7 +45,6 @@ test(
 test('T15531', normal, compile, ['-Wall'])
 test('T22043', normal, compile, [''])
 
-test('T22774', unless(js_arch(), expect_fail), compile, [''])
+test('T22774', unless(js_arch() or arch('wasm32'), expect_fail), compile, [''])
 
 test('T24034', normal, compile, [''])
-