gcc/testsuite/gdc.test/fail_compilation/fail3990.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail3990.d(12): Error: using `*` on an array is no longer supported; use `*(arr1).ptr` instead |
| 5 | fail_compilation/fail3990.d(14): Error: using `*` on an array is no longer supported; use `*(arr2).ptr` instead |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | void main() |
| 10 | { |
| 11 | int[] arr1 = [1, 2, 3]; |
| 12 | assert(*arr1 == 1); |
| 13 | int[3] arr2 = [1, 2, 3]; |
| 14 | assert(*arr2 == 1); |
| 15 | } |