diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-04-10 09:58:46 +0200 |
|---|---|---|
| committer | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-04-14 12:21:46 +0200 |
| commit | a67ded06a36b7d758a63d15f0a4c59b9f678f14c (patch) | |
| tree | e01497bc3332aeda852eb564e8fefb2fd1e77bf3 /src/test/incremental | |
| parent | fb730d75d4c1c05c90419841758300b6fbf01250 (diff) | |
| download | rust-a67ded06a36b7d758a63d15f0a4c59b9f678f14c.tar.gz rust-a67ded06a36b7d758a63d15f0a4c59b9f678f14c.zip | |
Don't recurse into allocations, use a global table instead
Diffstat (limited to 'src/test/incremental')
| -rw-r--r-- | src/test/incremental/static_cycle/b.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/incremental/static_cycle/b.rs b/src/test/incremental/static_cycle/b.rs new file mode 100644 index 00000000000..b659703bef0 --- /dev/null +++ b/src/test/incremental/static_cycle/b.rs @@ -0,0 +1,19 @@ +// 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// revisions:rpass1 rpass2 + +#![cfg_attr(rpass2, warn(dead_code))] + +pub static mut BAA: *const i8 = unsafe { &BOO as *const _ as *const i8 }; + +pub static mut BOO: *const i8 = unsafe { &BAA as *const _ as *const i8 }; + +fn main() {} |
