summaryrefslogtreecommitdiffstats
path: root/tests/ui/cfg/crt-static-on-works.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/cfg/crt-static-on-works.rs')
-rw-r--r--tests/ui/cfg/crt-static-on-works.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/cfg/crt-static-on-works.rs b/tests/ui/cfg/crt-static-on-works.rs
new file mode 100644
index 000000000..f89d1edd6
--- /dev/null
+++ b/tests/ui/cfg/crt-static-on-works.rs
@@ -0,0 +1,6 @@
+// run-pass
+// compile-flags:-C target-feature=+crt-static
+// only-msvc
+
+#[cfg(target_feature = "crt-static")]
+fn main() {}