summaryrefslogtreecommitdiffstats
path: root/src/test/debuginfo/issue-7712.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/debuginfo/issue-7712.rs')
-rw-r--r--src/test/debuginfo/issue-7712.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/debuginfo/issue-7712.rs b/src/test/debuginfo/issue-7712.rs
new file mode 100644
index 000000000..3a7565f55
--- /dev/null
+++ b/src/test/debuginfo/issue-7712.rs
@@ -0,0 +1,16 @@
+// compile-flags:-C debuginfo=1
+// min-lldb-version: 310
+
+pub trait TraitWithDefaultMethod : Sized {
+ fn method(self) {
+ ()
+ }
+}
+
+struct MyStruct;
+
+impl TraitWithDefaultMethod for MyStruct { }
+
+pub fn main() {
+ MyStruct.method();
+}