diff options
Diffstat (limited to 'tests/incremental/extern_static/issue-49153.rs')
-rw-r--r-- | tests/incremental/extern_static/issue-49153.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/incremental/extern_static/issue-49153.rs b/tests/incremental/extern_static/issue-49153.rs new file mode 100644 index 000000000..f1dbac288 --- /dev/null +++ b/tests/incremental/extern_static/issue-49153.rs @@ -0,0 +1,11 @@ +// https://github.com/rust-lang/rust/issues/49153 + +// revisions:rpass1 rpass2 + +extern "C" { + pub static __ImageBase: u8; +} + +pub static FOO: &'static u8 = unsafe { &__ImageBase }; + +fn main() {} |