aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/privacy2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/privacy2.rs')
-rw-r--r--gcc/testsuite/rust/compile/privacy2.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/privacy2.rs b/gcc/testsuite/rust/compile/privacy2.rs
new file mode 100644
index 0000000..3c07449
--- /dev/null
+++ b/gcc/testsuite/rust/compile/privacy2.rs
@@ -0,0 +1,13 @@
+// { dg-additional-options "-w" }
+
+mod orange {
+ fn tangerine() {}
+
+ mod green {
+ mod blue {
+ fn berry() {
+ tangerine();
+ }
+ }
+ }
+}