aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-01-28 11:54:59 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-01-28 11:54:59 -0500
commit3cac20dae3272728282466467cb0193d7dbbf00c (patch)
treea257f43c91b257ce34eb8eff0d4839af8787075f /src/test
parentAdd helper function for derived type descriptors. (diff)
downloadrust-3cac20dae3272728282466467cb0193d7dbbf00c.tar.xz
rust-3cac20dae3272728282466467cb0193d7dbbf00c.zip
Correctly handle "import foo = bar.zed;".
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/import8.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/import8.rs b/src/test/run-pass/import8.rs
new file mode 100644
index 00000000..5031e984
--- /dev/null
+++ b/src/test/run-pass/import8.rs
@@ -0,0 +1,13 @@
+import foo.x;
+import z = foo.x;
+
+mod foo {
+ fn x(int y) {
+ log y;
+ }
+}
+
+fn main() {
+ x(10);
+ z(10);
+}