Commit cc86cd4
committed
Add regression tests for compound literal pointers
Four regression tests were added under the “Compound Literals”
section in `tests/driver.sh`
The tests cover:
- char[] compound literal assigned to char* (sum = 200)
- short[] compound literal assigned to short* (sum = 6)
- ternary returning int* with literal in the false branch (true case)
- ternary returning int* selecting the literal branch (false case)1 parent bd68c7b commit cc86cd4
File tree
5 files changed
+34
-4
lines changed- tests
- snapshots
5 files changed
+34
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4759 | 4759 | | |
4760 | 4760 | | |
4761 | 4761 | | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
4762 | 4792 | | |
4763 | 4793 | | |
4764 | 4794 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments