Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements.

This commit is contained in:
Jason Newcomb 2023-03-09 15:46:46 -05:00
parent 0b3c2ed811
commit 5351170744
32 changed files with 165 additions and 128 deletions

View file

@ -72,6 +72,18 @@ fn main() {
_ => 1,
};
let _ = match 0 {
0 => {
m!(foo);
0
},
1 => {
m!(bar);
0
},
_ => 1,
};
let _ = match 0 {
0 => {
let mut x = 0;