]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 IB |
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 | |
b4c522fa IB |
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 | } |