diff options
| author | Graydon Hoare <[email protected]> | 2011-01-10 18:18:16 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-01-10 18:18:16 -0800 |
| commit | a8eeec1dbd7e06bc811e55c641b6c282807997a5 (patch) | |
| tree | 4838ff018e3835ec1203897cd6a1c602d52fbcbf /src/test | |
| parent | Add std.path module for pathname manipulations. (diff) | |
| download | rust-a8eeec1dbd7e06bc811e55c641b6c282807997a5.tar.xz rust-a8eeec1dbd7e06bc811e55c641b6c282807997a5.zip | |
Sketch support for reading multi-file crates in rustc. Add test, not yet working.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/multi-src/bar.rs | 3 | ||||
| -rw-r--r-- | src/test/run-pass/multi-src/foo.rs | 4 | ||||
| -rw-r--r-- | src/test/run-pass/multi.rc | 6 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/multi-src/bar.rs b/src/test/run-pass/multi-src/bar.rs new file mode 100644 index 00000000..598fbf3c --- /dev/null +++ b/src/test/run-pass/multi-src/bar.rs @@ -0,0 +1,3 @@ +fn other() { + log "yes"; +}
\ No newline at end of file diff --git a/src/test/run-pass/multi-src/foo.rs b/src/test/run-pass/multi-src/foo.rs new file mode 100644 index 00000000..c166958e --- /dev/null +++ b/src/test/run-pass/multi-src/foo.rs @@ -0,0 +1,4 @@ +fn main() { + log "hello, multi-file world."; + bar.other(); +}
\ No newline at end of file diff --git a/src/test/run-pass/multi.rc b/src/test/run-pass/multi.rc new file mode 100644 index 00000000..90f03ee9 --- /dev/null +++ b/src/test/run-pass/multi.rc @@ -0,0 +1,6 @@ +mod multi = "multi-src" { + + mod foo; // implicitly = "foo.rs" + + mod bar = "bar.rs"; +} |