diff options
Diffstat (limited to 'tests/ui/statics/issue-14227.rs')
-rw-r--r-- | tests/ui/statics/issue-14227.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/statics/issue-14227.rs b/tests/ui/statics/issue-14227.rs new file mode 100644 index 000000000..5f866ec90 --- /dev/null +++ b/tests/ui/statics/issue-14227.rs @@ -0,0 +1,10 @@ +// revisions: mir thir +// [thir]compile-flags: -Z thir-unsafeck + +extern "C" { + pub static symbol: u32; +} +static CRASH: u32 = symbol; +//~^ ERROR use of extern static is unsafe and requires + +fn main() {} |