--- /dev/null
+#include "gwion_util.h"
+#include "gwion_ast.h"
+#include "oo.h"
+#include "vm.h"
+#include "env.h"
+#include "type.h"
+#include "object.h"
+#include "instr.h"
+#include "gwion.h"
+#include "operator.h"
+#include "import.h"
+#include "emit.h"
+#include "specialid.h"
+
+
+static ID_EMIT(spidem) {
+ const Instr instr = emit_add_instr(emit, RegPushImm);
+ instr->m_val = 1234;
+ return instr;
+}
+
+GWION_IMPORT(spid_test) {
+ struct SpecialId_ spid = { .type=t_int, .em=spidem, .is_const = 1 };
+ gwi_specialid(gwi, "testid", &spid);
+ return GW_OK;
+}
#!/bin/bash
-# [test] #16
+# [test] #17
+
n=0
[ "$1" ] && n="$1"
[ "$n" -eq 0 ] && n=1
n=$((n+1))
run "$n" "just check" "-g check" "file"
+# set compilation passes
+n=$((n+1))
+run "$n" "just check" "-g nopass" "file"
+
# test signal
./gwion -l1 &
PID=$!