summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/btrace/mapempty.bt
blob: e0dba63d2153fbef982ddc5e5466d4e4059a4f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}