diff options
| author | ChinYing-Li <chinying.li@mail.utoronto.ca> | 2021-04-21 14:08:57 +0800 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-04-21 21:30:42 -0500 |
| commit | 84ff0013c25cd96995f61253b0b8da74e32d12ea (patch) | |
| tree | 94d3286fb472fde0bbb7234ca24d92bc5841ddf1 | |
| parent | dac2423f3f6a24b81e157c54c8c08f7ccc151295 (diff) | |
| download | rust-84ff0013c25cd96995f61253b0b8da74e32d12ea.tar.gz rust-84ff0013c25cd96995f61253b0b8da74e32d12ea.zip | |
Add the case in duplicate issue (#4806) to the idempotent tests
| -rw-r--r-- | tests/source/issue-4312.rs | 14 | ||||
| -rw-r--r-- | tests/target/issue-4312.rs | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/source/issue-4312.rs b/tests/source/issue-4312.rs index 6d00867beab..b36b0efdb9e 100644 --- a/tests/source/issue-4312.rs +++ b/tests/source/issue-4312.rs @@ -1,3 +1,4 @@ +// issue 4312 fn main() { /* " */ println!("Hello, world!"); @@ -5,4 +6,17 @@ fn main() { println!("Hello, world!"); /* " abc */ println!("Hello, world!"); + let y = 4; + let x = match 1 + y == 3 { + True => 3, + False => 4, + /* " unreachable */ + }; +} + +// issue 4806 +enum X { + A, + B, + /*"*/ } diff --git a/tests/target/issue-4312.rs b/tests/target/issue-4312.rs index 6d00867beab..b36b0efdb9e 100644 --- a/tests/target/issue-4312.rs +++ b/tests/target/issue-4312.rs @@ -1,3 +1,4 @@ +// issue 4312 fn main() { /* " */ println!("Hello, world!"); @@ -5,4 +6,17 @@ fn main() { println!("Hello, world!"); /* " abc */ println!("Hello, world!"); + let y = 4; + let x = match 1 + y == 3 { + True => 3, + False => 4, + /* " unreachable */ + }; +} + +// issue 4806 +enum X { + A, + B, + /*"*/ } |
