From: Brian Koropoff Date: Tue, 30 Sep 2014 03:22:29 +0000 (-0700) Subject: Add regression test for issue #17458 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=eb8b36973db4fc0340f8f5345b67410d68af5115;p=rust.git Add regression test for issue #17458 --- diff --git a/src/test/run-pass/issue-17458.rs b/src/test/run-pass/issue-17458.rs new file mode 100644 index 00000000000..a32a31e97e3 --- /dev/null +++ b/src/test/run-pass/issue-17458.rs @@ -0,0 +1,15 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +static X: uint = 0 as *const uint as uint; + +fn main() { + assert_eq!(X, 0); +}