summaryrefslogtreecommitdiffstats
path: root/tests/run-make/symbols-include-type-name/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/symbols-include-type-name/lib.rs')
-rw-r--r--tests/run-make/symbols-include-type-name/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run-make/symbols-include-type-name/lib.rs b/tests/run-make/symbols-include-type-name/lib.rs
new file mode 100644
index 000000000..37d445917
--- /dev/null
+++ b/tests/run-make/symbols-include-type-name/lib.rs
@@ -0,0 +1,14 @@
+pub struct Def {
+ pub id: i32,
+}
+
+impl Def {
+ pub fn new(id: i32) -> Def {
+ Def { id: id }
+ }
+}
+
+#[no_mangle]
+pub fn user() {
+ let _ = Def::new(0);
+}