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