Add codegen test
This commit is contained in:
parent
e1837a0d1a
commit
aed7ec42b3
15
src/test/codegen/fn-impl-trait-self.rs
Normal file
15
src/test/codegen/fn-impl-trait-self.rs
Normal file
@ -0,0 +1,15 @@
|
||||
// compile-flags: -g
|
||||
//
|
||||
// CHECK-LABEL: @main
|
||||
// CHECK: {{.*}}DIDerivedType(tag: DW_TAG_pointer_type, name: "fn() -> <recursive_type>",{{.*}}
|
||||
//
|
||||
// CHECK: {{.*}}DISubroutineType{{.*}}
|
||||
// CHECK: {{.*}}DIBasicType(name: "<recur_type>", encoding: DW_ATE_unsigned)
|
||||
|
||||
pub fn foo() -> impl Copy {
|
||||
foo
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let my_res = foo();
|
||||
}
|
Loading…
Reference in New Issue
Block a user