summaryrefslogtreecommitdiffstats
path: root/tests/ui/cfg/cfg_false_no_std.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/cfg/cfg_false_no_std.rs')
-rw-r--r--tests/ui/cfg/cfg_false_no_std.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/cfg/cfg_false_no_std.rs b/tests/ui/cfg/cfg_false_no_std.rs
new file mode 100644
index 000000000..319ea0781
--- /dev/null
+++ b/tests/ui/cfg/cfg_false_no_std.rs
@@ -0,0 +1,11 @@
+// Currently no error because the panic handler is supplied by libstd linked though the empty
+// library, but the desirable behavior is unclear (see comments in cfg_false_lib.rs).
+
+// check-pass
+// aux-build: cfg_false_lib.rs
+
+#![no_std]
+
+extern crate cfg_false_lib as _;
+
+fn main() {}