提交 fcf88b8f 编写于 作者: P Piotr Czarnecki

coretest: Ensure that pointer formatting flags are cleaned up

上级 5aaa6069
......@@ -9,3 +9,10 @@
// except according to those terms.
mod num;
#[test]
fn test_format_flags() {
// No residual flags left by pointer formatting
let p = "".as_ptr();
assert_eq!(format!("{:p} {:x}", p, 16u), format!("{:p} 10", p));
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册