summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/log-backtrace.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/attributes/log-backtrace.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/attributes/log-backtrace.rs b/tests/ui/attributes/log-backtrace.rs
new file mode 100644
index 000000000..3979d2001
--- /dev/null
+++ b/tests/ui/attributes/log-backtrace.rs
@@ -0,0 +1,9 @@
+// run-pass
+//
+// This test makes sure that log-backtrace option doesn't give a compilation error.
+//
+// dont-check-compiler-stdout
+// dont-check-compiler-stderr
+// rustc-env:RUSTC_LOG=info
+// compile-flags: -Zlog-backtrace=rustc_metadata::creader
+fn main() {}