diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/unsafe-fn-called-from-unsafe-fn.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/unsafe-fn-called-from-unsafe-fn.rs b/src/test/ui/unsafe-fn-called-from-unsafe-fn.rs new file mode 100644 index 000000000..5e9531076 --- /dev/null +++ b/src/test/ui/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; +} |