File tree 1 file changed +4
-4
lines changed
src/test/codegen/unwind-abis
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
#![ crate_type = "lib" ]
7
7
#![ feature( c_unwind) ]
8
8
9
- // CHECK: @rust_item_that_can_unwind() unnamed_addr #0
9
+ // CHECK: @rust_item_that_can_unwind() unnamed_addr [[ATTR0:#[0-9]+]]
10
10
#[ no_mangle]
11
11
pub unsafe extern "C-unwind" fn rust_item_that_can_unwind ( ) {
12
12
// CHECK: call void @_ZN4core9panicking15panic_no_unwind
13
13
may_unwind ( ) ;
14
14
}
15
15
16
16
extern "C-unwind" {
17
- // CHECK: @may_unwind() unnamed_addr #1
17
+ // CHECK: @may_unwind() unnamed_addr [[ATTR1:#[0-9]+]]
18
18
fn may_unwind ( ) ;
19
19
}
20
20
21
21
// Now, make sure that the LLVM attributes for this functions are correct. First, make
22
22
// sure that the first item is correctly marked with the `nounwind` attribute:
23
23
//
24
- // CHECK: attributes #0 = { {{.*}}nounwind{{.*}} }
24
+ // CHECK: attributes [[ATTR0]] = { {{.*}}nounwind{{.*}} }
25
25
//
26
26
// Now, check that foreign item is correctly marked without the `nounwind` attribute.
27
- // CHECK-NOT: attributes #1 = { {{.*}}nounwind{{.*}} }
27
+ // CHECK-NOT: attributes [[ATTR1]] = { {{.*}}nounwind{{.*}} }
You can’t perform that action at this time.
0 commit comments