-# $OpenBSD: Makefile,v 1.19 2021/09/09 10:00:04 mpi Exp $
+# $OpenBSD: Makefile,v 1.20 2021/09/09 19:02:50 jasper Exp $
BTRACE?= /usr/sbin/btrace
ALLOWDT!= sysctl -n kern.allowdt
# scripts that don't need /dev/dt
-BT_LANG_SCRIPTS= arithm beginend boolean comments delete exit if \
+BT_LANG_SCRIPTS= arithm beginend boolean comments delete exit \
+ histempty if \
map mapclear mapempty mapsyntax mapzero map-unnamed \
maxoperand min+max+sum multismts nsecs+var \
precedence print read-map-after-clear syntaxerror
--- /dev/null
+BEGIN
+{
+ @histmap = hist(1);
+ print(@histmap);
+}
+
+END
+{
+ clear(@histmap);
+ printf("=> clear() after clear:\n");
+ clear(@histmap);
+ printf("=> delete() after clear:\n");
+ delete(@histmap[0]);
+ printf("=> zero() after clear:\n");
+ zero(@histmap);
+ print(@histmap);
+
+}