Make tests a little more friendly to combine.

This commit is contained in:
Graydon Hoare 2011-06-29 09:13:48 -07:00
parent b18cefdfd7
commit 750dcc05e4
6 changed files with 8 additions and 5 deletions

View File

@ -6,4 +6,4 @@ mod m1 {
fn bar(m1::foo x) { alt (x) { case (m1::foo1) { } } }
fn main(vec[str] args) { }
fn main() { }

View File

@ -1,5 +1,6 @@
export foo;
export main;
tag list_cell[T] { cons(@list_cell[T]); }

View File

@ -7,8 +7,10 @@ mod foo {
mod bar {
import foo::x;
import z = foo::x;
fn main() {
fn thing() {
x(10);
z(10);
}
}
fn main() { bar::thing(); }

View File

@ -5,4 +5,4 @@ mod zed {
fn bar() { log "bar"; }
}
fn main(vec[str] args) { bar(); }
fn main() { bar(); }

View File

@ -8,4 +8,4 @@ mod baz {
}
}
fn main(vec[str] args) { bar(); }
fn main() { bar(); }

View File

@ -11,6 +11,6 @@ mod bar {
import zed::baz;
export baz;
}
fn main(vec[str] args) {
fn main() {
baz();
}