summaryrefslogtreecommitdiffstats
path: root/src/test/ui/extern/issue-28324.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/extern/issue-28324.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/extern/issue-28324.rs b/src/test/ui/extern/issue-28324.rs
new file mode 100644
index 000000000..fbe83e325
--- /dev/null
+++ b/src/test/ui/extern/issue-28324.rs
@@ -0,0 +1,11 @@
+// revisions: mir thir
+// [thir]compile-flags: -Z thir-unsafeck
+
+extern "C" {
+ static error_message_count: u32;
+}
+
+pub static BAZ: u32 = *&error_message_count;
+//~^ ERROR use of extern static is unsafe and requires
+
+fn main() {}