Skip to content

Commit f7f6598

Browse files
committed
Simplify and fix test
1 parent 7188706 commit f7f6598

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/codegen/noreturnflag.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@
1313

1414
// compile-flags: -g -C no-prepopulate-passes
1515

16-
// CHECK-LABEL: foo
17-
// CHECK: {{.*}}DISubprogram{{.*}} name: "foo",{{.*}}DIFlagNoReturn{{.*}}
16+
// CHECK: {{.*}}DISubprogram{{.*}}name: "foo"{{.*}}DIFlagNoReturn
1817

19-
#[no_mangle]
20-
pub fn foo() -> ! {
18+
fn foo() -> ! {
2119
loop {}
2220
}
2321

24-
// CHECK-LABEL: main
2522
// CHECK: {{.*}}DISubprogram{{.*}}name: "main",{{.*}}DIFlagMainSubprogram{{.*}}
2623

2724
pub fn main() {

0 commit comments

Comments
 (0)