@@ -0,0 +1,29 @@
+{ %cpu=wasm32 }
+{ %norun }
+
+program twasmexternref1;
+procedure testproc;
+var
+ p: WasmExternRef;
+begin
+end;
+procedure testproc2(q: WasmExternRef);
+function testproc3: WasmExternRef;
+function testproc4(a, b, c: longint; d: WasmExternRef; e: int64): WasmExternRef;
+ q: WasmExternRef;
+ q := d;
+ testproc4 := q;
+end.