File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
branches/tmp/src/test/run-pass Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
- refs/heads/tmp: 4a22c3368fe4fd570859fbbf03b971f4913a8569
37
+ refs/heads/tmp: c22d026326f10f8a4e60d49c6fbf37de3c970a78
38
38
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
Original file line number Diff line number Diff line change @@ -137,6 +137,13 @@ pub fn main() {
137
137
t ! ( format!( "{:+10.3e}" , 1.2345e6f64 ) , " +1.234e6" ) ;
138
138
t ! ( format!( "{:+10.3e}" , -1.2345e6f64 ) , " -1.234e6" ) ;
139
139
140
+ // Test that pointers don't get truncated.
141
+ {
142
+ let val = usize:: MAX ;
143
+ let exp = format ! ( "{:#x}" , val) ;
144
+ t ! ( format!( "{:p}" , val as * const isize ) , exp) ;
145
+ }
146
+
140
147
// Escaping
141
148
t ! ( format!( "{{" ) , "{" ) ;
142
149
t ! ( format!( "}}" ) , "}" ) ;
You can’t perform that action at this time.
0 commit comments