Skip to content

Commit 93813cf

Browse files
committed
Add codegen test
1 parent c1b9632 commit 93813cf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// compile-flags: -g
2+
//
3+
// CHECK-LABEL: @main
4+
// CHECK: {{.*}}DIDerivedType(tag: DW_TAG_pointer_type, name: "fn() -> <recursive_type>",{{.*}}
5+
//
6+
// CHECK: {{.*}}DISubroutineType{{.*}}
7+
// CHECK: {{.*}}DIBasicType(name: "<recur_type>", encoding: DW_ATE_unsigned)
8+
9+
pub fn foo() -> impl Copy {
10+
foo
11+
}
12+
13+
fn main() {
14+
let my_res = foo();
15+
}

0 commit comments

Comments
 (0)