summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/privacy-reexport.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/privacy-reexport.rs')
-rw-r--r--tests/ui/privacy/privacy-reexport.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/privacy/privacy-reexport.rs b/tests/ui/privacy/privacy-reexport.rs
new file mode 100644
index 000000000..b3ec3af04
--- /dev/null
+++ b/tests/ui/privacy/privacy-reexport.rs
@@ -0,0 +1,13 @@
+// run-pass
+// aux-build:privacy_reexport.rs
+
+// pretty-expanded FIXME #23616
+
+extern crate privacy_reexport;
+
+pub fn main() {
+ // Check that public extern crates are visible to outside crates
+ privacy_reexport::core::cell::Cell::new(0);
+
+ privacy_reexport::bar::frob();
+}