summaryrefslogtreecommitdiffstats
path: root/tests/incremental/issue-35593.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/incremental/issue-35593.rs')
-rw-r--r--tests/incremental/issue-35593.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/incremental/issue-35593.rs b/tests/incremental/issue-35593.rs
new file mode 100644
index 000000000..009e37d17
--- /dev/null
+++ b/tests/incremental/issue-35593.rs
@@ -0,0 +1,12 @@
+// Regression test for #35593. Check that we can reuse this trivially
+// equal example.
+
+// revisions:rpass1 rpass2
+// compile-flags: -Z query-dep-graph
+
+#![feature(rustc_attrs)]
+#![rustc_partition_reused(module="issue_35593", cfg="rpass2")]
+
+fn main() {
+ println!("hello world");
+}