// Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// VMOptions=--old_gen_heap_size=7
// Test that compaction does occur on repeated add/remove.

main() {
  var x = {};
  for (int i = 0; i < 1000000; i++) {
    x[i] = 10;
    x.remove(i);
  }
}

Add regression test for Map compaction issue.
Add regression test for Map compaction issue.

Original fix for the issue:
https://code.google.com/p/dart/source/detail?r=44671

R=kustermann@google.com

Review URL: https://codereview.chromium.org//1010743005

git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@44702 260f80e4-7a28-3924-810f-c04153c831b5
