Slightly refactor constant evaluation and add detection for empty macro expansion and cfged statements.
This commit is contained in:
parent
0b3c2ed811
commit
5351170744
32 changed files with 165 additions and 128 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue