/* Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft */ // C5 bugs 2007-09-16 // Compile with // csc /r:C5.dll BugHashArray.cs using System; using C5; namespace Anagrams { class MyTest { public static void Main(String[] args) { HashedLinkedList test = new HashedLinkedList(); for (int i = 0; i < 33; i++) { test.Add(i); } // for // Fails after 7 removals for (int i = 0; i < 33; i++) { Console.WriteLine(i); test.Remove(i); } // for // Fails after 23 removals // for (int i = 32; i >= 0; i--) { // Console.WriteLine(i); // test.Remove(i); // } // for } } }