"Fossies" - the Fresh Open Source Software Archive

Member "bc-1.06.95/Test/array.b" (7 Jul 2000, 192 Bytes) of package /linux/misc/old/bc-1.06.95.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Limbo source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 "This tests arrays!
    2 "
    3 define p(x,y) {
    4   auto i;
    5   for (i=x; i<y; i++) a[i];
    6 }
    7 
    8 for (i=0; i<10; i++) a[i] = i;
    9 j = p(0,10);
   10 
   11 for (i=1000; i<1030; i++) a[i] = i;
   12 j = p(1000,1030);
   13 j = p(0,10);
   14