summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-9243.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-9243.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-9243.rs b/src/test/ui/issues/issue-9243.rs
new file mode 100644
index 000000000..59fdb4662
--- /dev/null
+++ b/src/test/ui/issues/issue-9243.rs
@@ -0,0 +1,16 @@
+// build-pass
+#![allow(dead_code)]
+// Regression test for issue 9243
+#![allow(non_upper_case_globals)]
+
+pub struct Test {
+ mem: isize,
+}
+
+pub static g_test: Test = Test {mem: 0};
+
+impl Drop for Test {
+ fn drop(&mut self) {}
+}
+
+fn main() {}