Merge pull request #367 from BBasile/issue-344

fix #344, It doesn't determine type of element of array declared by auto
This commit is contained in:
Brian Schott 2017-04-05 15:28:53 -07:00 committed by GitHub
commit 4998a3c441
4 changed files with 20 additions and 1 deletions

@ -1 +1 @@
Subproject commit d22c9714a60ac05cb32db938e81a396cffb5ffa6
Subproject commit 005f60070212aebe522938595b1346110c36dc33

8
tests/tc050/expected.txt Normal file
View File

@ -0,0 +1,8 @@
identifiers
alignof k
init k
mangleof k
max k
min k
sizeof k
stringof k

6
tests/tc050/file.d Normal file
View File

@ -0,0 +1,6 @@
auto a = [[[0]]];
void main(string[] args)
{
a[0][0][0].
}

5
tests/tc050/run.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d -c61 > actual.txt
diff actual.txt expected.txt