summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe/issue-106126-good-path-bug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsafe/issue-106126-good-path-bug.rs')
-rw-r--r--tests/ui/unsafe/issue-106126-good-path-bug.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/unsafe/issue-106126-good-path-bug.rs b/tests/ui/unsafe/issue-106126-good-path-bug.rs
new file mode 100644
index 000000000..93f478ee3
--- /dev/null
+++ b/tests/ui/unsafe/issue-106126-good-path-bug.rs
@@ -0,0 +1,12 @@
+// Regression test for #106126.
+// check-pass
+// aux-build:issue-106126.rs
+
+#![deny(unsafe_op_in_unsafe_fn)]
+
+#[macro_use]
+extern crate issue_106126;
+
+foo!();
+
+fn main() {}