LLVM prints switch cases indented by 2 additional spaces, as follows:
```LLVM
switch i32 %x, label %default [
i32 0, label %phi
i32 1, label %phi
]
```
Since this only changes the output IR of update_test_checks.py and does
not change the logic of the File Check Pattern, there seems to be no
need to update the existing test cases.
4 lines
212 B
Plaintext
4 lines
212 B
Plaintext
## switch_case test checking that update_test_checks.py works correctly
|
|
# RUN: cp -f %S/Inputs/switch_case.ll %t.ll && %update_test_checks %t.ll --version 7
|
|
# RUN: diff -u %t.ll %S/Inputs/switch_case.ll.expected
|