Add support for running tests in no_std mode.

This commit is contained in:
Dan Gohman
2018-01-18 22:05:51 -08:00
parent 023f8d7980
commit 61db54c447
43 changed files with 101 additions and 13 deletions

View File

@@ -221,6 +221,7 @@ impl fmt::Display for AllocatableSet {
mod tests {
use super::*;
use isa::registers::{RegClass, RegClassData};
use std::vec::Vec;
// Register classes for testing.
const GPR: RegClass = &RegClassData {