summaryrefslogtreecommitdiffstats
path: root/tests/run-make/split-debuginfo/bar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/split-debuginfo/bar.rs')
-rw-r--r--tests/run-make/split-debuginfo/bar.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run-make/split-debuginfo/bar.rs b/tests/run-make/split-debuginfo/bar.rs
new file mode 100644
index 000000000..07dd07152
--- /dev/null
+++ b/tests/run-make/split-debuginfo/bar.rs
@@ -0,0 +1,13 @@
+pub struct Bar {
+ x: u32,
+}
+
+impl Bar {
+ pub fn print(&self) {
+ println!("{}", self.x);
+ }
+}
+
+pub fn make_bar(x: u32) -> Bar {
+ Bar { x }
+}