File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ fn test_parse_normalization_string() {
27
27
let first = parse_normalization_string ( & mut s) ;
28
28
assert_eq ! ( first, Some ( "something (32 bits)" . to_owned( ) ) ) ;
29
29
assert_eq ! ( s, " -> \" something ($WORD bits)." ) ;
30
+
31
+ // Nothing to normalize (No quotes, 16-bit)
32
+ let mut s = "normalize-stderr-16bit: something (16 bits) -> something ($WORD bits)." ;
33
+ let first = parse_normalization_string ( & mut s) ;
34
+ assert_eq ! ( first, None ) ;
35
+ assert_eq ! ( s, r#"normalize-stderr-16bit: something (16 bits) -> something ($WORD bits)."# ) ;
30
36
}
31
37
32
38
fn config ( ) -> Config {
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ pub fn matches_env(triple: &str, name: &str) -> bool {
115
115
pub fn get_pointer_width ( triple : & str ) -> & ' static str {
116
116
if ( triple. contains ( "64" ) && !triple. ends_with ( "gnux32" ) ) || triple. starts_with ( "s390x" ) {
117
117
"64bit"
118
+ } else if triple. starts_with ( "avr" ) {
119
+ "16bit"
118
120
} else {
119
121
"32bit"
120
122
}
You can’t perform that action at this time.
0 commit comments