summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe/unsafe-fn-called-from-unsafe-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsafe/unsafe-fn-called-from-unsafe-fn.rs')
-rw-r--r--tests/ui/unsafe/unsafe-fn-called-from-unsafe-fn.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/unsafe/unsafe-fn-called-from-unsafe-fn.rs b/tests/ui/unsafe/unsafe-fn-called-from-unsafe-fn.rs
new file mode 100644
index 000000000..5e9531076
--- /dev/null
+++ b/tests/ui/unsafe/unsafe-fn-called-from-unsafe-fn.rs
@@ -0,0 +1,17 @@
+// run-pass
+
+#![allow(dead_code)]
+//
+// See also: ui/unsafe/unsafe-fn-called-from-safe.rs
+
+// pretty-expanded FIXME #23616
+
+unsafe fn f() { return; }
+
+unsafe fn g() {
+ f();
+}
+
+pub fn main() {
+ return;
+}