about summary refs log tree commit diff
path: root/tests/run-make/export/simple/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/export/simple/app.rs')
-rw-r--r--tests/run-make/export/simple/app.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/export/simple/app.rs b/tests/run-make/export/simple/app.rs
new file mode 100644
index 00000000000..ba34bdd7b56
--- /dev/null
+++ b/tests/run-make/export/simple/app.rs
@@ -0,0 +1,8 @@
+extern crate libr;
+use libr::*;
+
+fn main() {
+    let s = m::S { x: 42 };
+    assert_eq!(m::foo1(s), 42);
+    assert_eq!(m::S::foo2(1), 1);
+}