2018-04-28 13:35:26 -05:00
|
|
|
//@ compile-flags: -g -C no-prepopulate-passes
|
2018-01-20 14:32:33 -06:00
|
|
|
|
2018-04-28 13:35:26 -05:00
|
|
|
#![crate_type = "lib"]
|
2018-01-20 14:32:33 -06:00
|
|
|
|
2018-04-28 13:35:26 -05:00
|
|
|
#[no_mangle]
|
|
|
|
pub fn foo() -> ! {
|
2024-05-28 23:11:20 -05:00
|
|
|
// CHECK: @foo() unnamed_addr #0
|
2018-01-20 14:32:33 -06:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2018-04-28 13:35:26 -05:00
|
|
|
pub enum EmptyEnum {}
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn bar() -> EmptyEnum {
|
2024-05-28 23:11:20 -05:00
|
|
|
// CHECK: @bar() unnamed_addr #0
|
2018-04-28 13:35:26 -05:00
|
|
|
loop {}
|
2018-01-20 14:32:33 -06:00
|
|
|
}
|
2018-04-28 13:35:26 -05:00
|
|
|
|
|
|
|
// CHECK: attributes #0 = {{{.*}} noreturn {{.*}}}
|
|
|
|
|
|
|
|
// CHECK: DISubprogram(name: "foo", {{.*}} DIFlagNoReturn
|
|
|
|
// CHECK: DISubprogram(name: "bar", {{.*}} DIFlagNoReturn
|