// xfail-boot
// xfail-stage0
// -*- rust -*-

// Tests for using alt as an expression

fn test() {
  let bool res = alt (true) {
    case (true) {
      true
    }
    case (false) {
      false
    }
  };
  check (res);

  res = alt(false) {
    case (true) {
      false
    }
    case (false) {
      true
    }
  };
  check (res);
}

fn main() {
  test();
}
Add an XFAILed test for treating alts as expressions
Add an XFAILed test for treating alts as expressions
