File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 22#![ crate_type = "lib" ]
33#![ feature( ffi_const) ]
44
5- // CHECK-LABEL: @bar()
6- #[ no_mangle]
75pub fn bar ( ) { unsafe { foo ( ) } }
86
9-
107extern {
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 ( ) ;
169}
10+ // CHECK: declare void @foo(){{.*}}#1{{.*}}
11+ // CHECK: attributes #1 = { {{.*}}readnone{{.*}} }
Original file line number Diff line number Diff line change 22#![ crate_type = "lib" ]
33#![ feature( ffi_pure) ]
44
5- // CHECK-LABEL: @bar()
6- #[ no_mangle]
75pub fn bar ( ) { unsafe { foo ( ) } }
86
97extern {
10- // CHECK-LABEL: @foo() unnamed_addr #1
11- // CHECK: attributes #1 = { {{.*}}readonly{{.*}} }
128 #[ ffi_pure] pub fn foo ( ) ;
139}
10+ // CHECK: declare void @foo(){{.*}}#1{{.*}}
11+ // CHECK: attributes #1 = { {{.*}}readonly{{.*}} }
You can’t perform that action at this time.
0 commit comments