/* This is intended to test the NOW backend, because the bug in question only showed up there. */ class PR187 { public static int ten(int i) { System.out.print(i); return 10; } public static single void main(String[] args) { int [] k = new int[7]; int [2d] [] j; int [2d] local [] local jll; int [] local [2d] local [] local mlll; double [] a = {3, 4, 5}; double [] local b = {6, 7, 8}; for (int single i = 0; i < Ti.numProcs(); Ti.barrier(), i++) if (i == Ti.thisProc()) { System.out.println("proc " + i); System.out.println("k.length = " + k.length + "; k[1] = " + k[1]); System.out.println("a.length = " + a.length + "; a[1] = " + a[1]); System.out.println("b.length = " + b.length + "; b[1] = " + b[1]); mlll = new int [ten(1)] local [1 : 2, 9 : ten(2)] local [ten(3)] local; System.out.println(); jll = new int [1 : 2, 9 : ten(1)] local [ten(2)] local; foreach (p in jll.domain()) System.out.println("jll" + p + ".length = " + jll[p].length); j = new int [ten(3) : ten(4), ten(5) : ten(6) + 1] [ten(7) / 2]; foreach (p in j.domain()) System.out.println("j" + p + ".length = " + j[p].length); // extra time for GLUnix to flush streams try { Thread.sleep(2000); } catch (InterruptedException e) { } } } }