File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 2
2
#![ crate_type = "lib" ]
3
3
#![ feature( ffi_const) ]
4
4
5
- // CHECK-LABEL: @bar()
6
- #[ no_mangle]
7
5
pub fn bar ( ) { unsafe { foo ( ) } }
8
6
9
-
10
7
extern {
11
- // CHECK-LABEL: @foo() unnamed_addr #1
12
- // CHECK: attributes #1 = { {{.*}}readnone{{.*}} }
13
- #[ no_mangle]
14
- #[ ffi_const]
15
- pub fn foo ( ) ;
8
+ #[ ffi_const] pub fn foo ( ) ;
16
9
}
10
+ // CHECK: declare void @foo(){{.*}}#1{{.*}}
11
+ // CHECK: attributes #1 = { {{.*}}readnone{{.*}} }
Original file line number Diff line number Diff line change 2
2
#![ crate_type = "lib" ]
3
3
#![ feature( ffi_pure) ]
4
4
5
- // CHECK-LABEL: @bar()
6
- #[ no_mangle]
7
5
pub fn bar ( ) { unsafe { foo ( ) } }
8
6
9
7
extern {
10
- // CHECK-LABEL: @foo() unnamed_addr #1
11
- // CHECK: attributes #1 = { {{.*}}readonly{{.*}} }
12
8
#[ ffi_pure] pub fn foo ( ) ;
13
9
}
10
+ // CHECK: declare void @foo(){{.*}}#1{{.*}}
11
+ // CHECK: attributes #1 = { {{.*}}readonly{{.*}} }
You can’t perform that action at this time.
0 commit comments