Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Ben McDonald <46734217+bmcdonald3@users.noreply.github.com>
  • Loading branch information
bmcdonald3 committed Feb 22, 2023
1 parent 7bad5d8 commit 4d9763d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unstable/mapIterators.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use Map;

var m = new map(int, int);
m[0] = 1;

for key in m do
writeln(key);

for (key, val) in m.items() do
writeln(key, "->", val);
7 changes: 7 additions & 0 deletions test/unstable/mapIterators.good
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$CHPL_HOME/modules/internal/ChapelIteratorSupport.chpl:392: In function '_getIterator':
$CHPL_HOME/modules/internal/ChapelIteratorSupport.chpl:393: warning: 'Map.these' is unstable
mapIterators.chpl:6: called as _getIterator(x: map(int(64),int(64),false))
note: generic instantiations are underlined in the above callstack
mapIterators.chpl:9: note: 'Map.items' is unstable
0
0->1

0 comments on commit 4d9763d

Please sign in to comment.