Commit 4788e86
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 fc3ded6 commit 4788e86
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4743 | 4743 | | |
4744 | 4744 | | |
4745 | 4745 | | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
4746 | 4776 | | |
4747 | 4777 | | |
4748 | 4778 | | |
| |||
0 commit comments