diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/run-make-fulldeps/symbols-include-type-name/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/symbols-include-type-name/lib.rs b/src/test/run-make-fulldeps/symbols-include-type-name/lib.rs new file mode 100644 index 000000000..37d445917 --- /dev/null +++ b/src/test/run-make-fulldeps/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); +} |