File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ To load the extension and use it:
26
26
extern mod fourcc;
27
27
28
28
fn main() {
29
- let val = fourcc!("\xC0\xFF\xEE!")
30
- // val is 0xC0FFEE21
31
- let big_val = fourcc!("foo ", big );
32
- // big_val is 0x21EEFFC0
29
+ let val = fourcc!("\xC0\xFF\xEE!");
30
+ assert_eq!( val, 0xC0FFEE21u32);
31
+ let little_val = fourcc!("foo ", little );
32
+ assert_eq!(little_val, 0x21EEFFC0u32);
33
33
}
34
34
```
35
35
@@ -60,7 +60,6 @@ use syntax::parse::token;
60
60
use syntax:: parse:: token:: InternedString ;
61
61
62
62
#[ macro_registrar]
63
- #[ cfg( not( test) ) ]
64
63
pub fn macro_registrar ( register : |Name , SyntaxExtension |) {
65
64
register( token:: intern( "fourcc" ) ,
66
65
NormalTT ( ~BasicMacroExpander {
@@ -155,6 +154,6 @@ fn target_endian_little(cx: &ExtCtxt, sp: Span) -> bool {
155
154
contains ( cx. cfg ( ) , meta)
156
155
}
157
156
158
- // Fixes LLVM assert on Windows
157
+ // FIXME (10872): This is required to prevent an LLVM assert on Windows
159
158
#[ test]
160
159
fn dummy_test ( ) { }
You can’t perform that action at this time.
0 commit comments