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

}