1+ //! feature_raw_ref_op
2+
13use crate :: binary_conditional:: rust_entry3;
24use crate :: conditional:: rust_entry;
35use crate :: conditionals:: { rust_entry2, rust_ternaries} ;
6+ use crate :: else_if_chain:: rust_entry4;
47use crate :: unused_conditionals:: {
58 rust_unused_conditional1, rust_unused_conditional2, rust_unused_conditional3,
69} ;
7- use crate :: else_if_chain:: rust_entry4;
810use std:: ffi:: { c_int, c_uint} ;
911
1012#[ link( name = "test" ) ]
@@ -14,7 +16,7 @@ extern "C" {
1416 fn entry2 ( _: c_uint , _: * mut c_int ) ;
1517
1618 fn entry3 ( _: c_uint , _: * mut c_int ) ;
17-
19+
1820 fn entry4 ( _: c_int ) -> c_int ;
1921
2022 fn unused_conditional1 ( ) -> c_int ;
@@ -83,11 +85,11 @@ pub fn test_unused_conditional() {
8385}
8486
8587#[ test]
86- pub fn test_else_if_chain ( ) {
88+ pub fn test_else_if_chain ( ) {
8789 unsafe {
88- assert_eq ! ( entry4( 0 ) , rust_entry4( 0 ) ) ;
89- assert_eq ! ( entry4( 10 ) , rust_entry4( 10 ) ) ;
90- assert_eq ! ( entry4( 20 ) , rust_entry4( 20 ) ) ;
91- assert_eq ! ( entry4( 30 ) , rust_entry4( 30 ) ) ;
90+ assert_eq ! ( entry4( 0 ) , rust_entry4( 0 ) ) ;
91+ assert_eq ! ( entry4( 10 ) , rust_entry4( 10 ) ) ;
92+ assert_eq ! ( entry4( 20 ) , rust_entry4( 20 ) ) ;
93+ assert_eq ! ( entry4( 30 ) , rust_entry4( 30 ) ) ;
9294 }
9395}
0 commit comments