Skip to content

Commit

Permalink
Add codegen test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Apr 1, 2019
1 parent e1837a0 commit aed7ec4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/codegen/fn-impl-trait-self.rs
@@ -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();
}

0 comments on commit aed7ec4

Please sign in to comment.