Commit de31f6b
committed
Add test case for compound literals dacay
Add two regression tests to ensure correct handling of compound array literals in initializer context and when passed as pointer arguments.
The tests cover:
- decay of an int[] compound literal to int* during initialization
- passing an int[] compound literal to a function expecting int*1 parent 9322389 commit de31f6b
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
736 | 758 | | |
737 | 759 | | |
738 | 760 | | |
| |||
0 commit comments