Removing a type constraint that distracts from the main issue in this
test.

git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@16036 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

class A {
  def hello() { writeln("hello from A!"); }
}

def bar(type T) {
  var t = new T();
  t.hello();
}

def main() {
  bar(A);
}

class A {
  def hello() { writeln("hello from A!"); }
}

def bar(type T : A) {
  var t = new T();
  t.hello();
}

def main() {
  bar(A);
}


Make the seed to the RandomStream class in my QuickSort test be set to
something that causes the "infinite" loop failure instead of the current time.

git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@9702 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

// A test of the QuickSort function in the Sort module

use Sort;
use Random;

config const size = 4096;
config const seed = 27;

def main() {
  var A: [1..size] int;
  var rands: [1..size] real;
  var randomStream = RandomStream(seed);

  // Fill A with random int values in [0, 99999]
  randomStream.fillRandom(rands);
  [i in 1..size] A(i) = (100000 * rands(i)):int;

  QuickSort(A);

  // Check that A is sorted
  [i in 1..size-1] {
    if A(i) > A(i+1) then
      writeln(A(i), " ", A(i+1));
  }
}

// A test of the QuickSort function in the Sort module

use Sort;
use Random;

config const size = 4096;

def main() {
  var A: [1..size] int;
  var rands: [1..size] real;
  var randomStream = RandomStream();

  // Fill A with random int values in [0, 99999]
  randomStream.fillRandom(rands);
  [i in 1..size] A(i) = (100000 * rands(i)):int;

  QuickSort(A);

  // Check that A is sorted
  [i in 1..size-1] {
    if A(i) > A(i+1) then
      writeln(A(i), " ", A(i+1));
  }
}