Add codegen test

This commit is contained in:
Aaron Hill 2019-03-26 22:38:55 -04:00
parent e1837a0d1a
commit aed7ec42b3
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View 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();
}