summaryrefslogtreecommitdiffstats
path: root/tests/run-make/test-harness/test-ignore-cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/test-harness/test-ignore-cfg.rs')
-rw-r--r--tests/run-make/test-harness/test-ignore-cfg.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-make/test-harness/test-ignore-cfg.rs b/tests/run-make/test-harness/test-ignore-cfg.rs
new file mode 100644
index 000000000..31ef131f2
--- /dev/null
+++ b/tests/run-make/test-harness/test-ignore-cfg.rs
@@ -0,0 +1,9 @@
+#[test]
+#[cfg_attr(ignorecfg, ignore)]
+fn shouldignore() {
+}
+
+#[test]
+#[cfg_attr(noignorecfg, ignore)]
+fn shouldnotignore() {
+}