-# $OpenBSD: Makefile,v 1.15 2021/09/07 19:31:56 mpi Exp $
+# $OpenBSD: Makefile,v 1.16 2021/09/09 06:59:51 mpi Exp $
BTRACE?= /usr/sbin/btrace
# scripts that don't need /dev/dt
BT_LANG_SCRIPTS= arithm beginend boolean comments delete exit if \
- map mapclear mapsyntax mapzero map-unnamed \
+ map mapclear mapempty mapsyntax mapzero map-unnamed \
maxoperand min+max+sum multismts nsecs+var \
precedence print read-map-after-clear syntaxerror
--- /dev/null
+BEGIN
+{
+ @map[3 + 1] = 9999;
+ print(@map);
+}
+
+END
+{
+ clear(@map);
+ printf("=> clear() after clear:\n");
+ clear(@map);
+ printf("=> delete() after clear:\n");
+ delete(@map[4]);
+ printf("=> zero() after clear:\n");
+ zero(@map);
+ print(@map);
+}