Skip to content

Commit

Permalink
Simplify and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhota committed Jan 21, 2018
1 parent 7188706 commit f7f6598
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/test/codegen/noreturnflag.rs
Expand Up @@ -13,15 +13,12 @@

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

// CHECK-LABEL: foo
// CHECK: {{.*}}DISubprogram{{.*}} name: "foo",{{.*}}DIFlagNoReturn{{.*}}
// CHECK: {{.*}}DISubprogram{{.*}}name: "foo"{{.*}}DIFlagNoReturn

#[no_mangle]
pub fn foo() -> ! {
fn foo() -> ! {
loop {}
}

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

pub fn main() {
Expand Down

0 comments on commit f7f6598

Please sign in to comment.