diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-23 18:20:08 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-23 18:20:08 +0000 |
commit | 45b4e71ee04d9f3e26ffc78e99186370b8f4de22 (patch) | |
tree | 4d37d4bbe6238e6250f4aac40961c47db2216719 | |
parent | 5051d4e71a618650a91fc3d7af869ce9bdbc5500 (diff) |
Use map keys composed of multiple arguments.
-rw-r--r-- | regress/usr.sbin/btrace/map-unnamed.bt | 4 | ||||
-rw-r--r-- | regress/usr.sbin/btrace/map-unnamed.ok | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.sbin/btrace/map-unnamed.bt b/regress/usr.sbin/btrace/map-unnamed.bt index b344771bec7..1085a9d66a3 100644 --- a/regress/usr.sbin/btrace/map-unnamed.bt +++ b/regress/usr.sbin/btrace/map-unnamed.bt @@ -1,13 +1,13 @@ BEGIN { - @[8 - 1] = count(); + @[8 - 1, "test"] = count(); printf("=> Print with one element\n"); print(@); } END { - @[7] = count(); + @[7, "test"] = count(); printf("=> Print all map:\n"); print(@); } diff --git a/regress/usr.sbin/btrace/map-unnamed.ok b/regress/usr.sbin/btrace/map-unnamed.ok index f8ad54d8fd9..f62ab6ed06d 100644 --- a/regress/usr.sbin/btrace/map-unnamed.ok +++ b/regress/usr.sbin/btrace/map-unnamed.ok @@ -1,4 +1,4 @@ => Print with one element -@[7]: 1 +@[7, test]: 1 => Print all map: -@[7]: 2 +@[7, test]: 2 |