

#include <builtins.swift>

main
{
  int A[][];

  int rows = 3;
  int columns = 3;
  foreach i in [0:rows-1]
  {
    A[i][0] = 0;
  }
  foreach i in [0:rows-1]
  {
    foreach j in [0:columns-1]
    {
      A[i][j+1] = 1;
    }
  }
}



#include <builtins.swift>

main
{
  int A[][];

  int rows = 3;
  int columns = 3;
  foreach i in [0:rows-1]
  {
    A[i][0] = 0;
  }
  foreach i in [0:rows-1]
  {
    foreach j in [0:columns-1]
    {
      A[i][j] = 1;
    }
  }
}

--- 
+++ 
@@ -16,7 +16,7 @@
   {
     foreach j in [0:columns-1]
     {
-      A[i][j] = 1;
+      A[i][j+1] = 1;
     }
   }
 }
Fix double-write bug in test, now passes

git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@5323 dc4e9af1-7f46-4ead-bba6-71afc04862de
