tests have been corrected
This commit is contained in:
parent
44bcaf46f7
commit
ab82590bb6
|
@ -0,0 +1,2 @@
|
||||||
|
struct pair { int a; int b; };
|
||||||
|
pair func(){ return pair(); } int main() { auto var = func(); var. }
|
|
@ -1,8 +1,9 @@
|
||||||
identifiers
|
identifiers
|
||||||
|
a v
|
||||||
alignof k
|
alignof k
|
||||||
|
b v
|
||||||
init k
|
init k
|
||||||
mangleof k
|
mangleof k
|
||||||
max k
|
|
||||||
min k
|
|
||||||
sizeof k
|
sizeof k
|
||||||
stringof k
|
stringof k
|
||||||
|
tupleof k
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
identifiers
|
|
||||||
alignof k
|
|
||||||
dup k
|
|
||||||
idup k
|
|
||||||
init k
|
|
||||||
length k
|
|
||||||
mangleof k
|
|
||||||
ptr k
|
|
||||||
reverse k
|
|
||||||
sizeof k
|
|
||||||
sort k
|
|
||||||
stringof k
|
|
|
@ -1,3 +0,0 @@
|
||||||
int[] func(){ return [1,2]; } int main() { auto arr = func(); arr[0]. }
|
|
||||||
int[] func(){ return [1,2]; } int main() { int[] arr = func(); arr[0]. }
|
|
||||||
struct pair { int a; int b; }; pair func(){ return pair(); } int main() { auto var = func(); var. }
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
struct pair { int a; int b; };
|
||||||
|
pair[] func(){ return [pair(1,2)]; } int main() { auto arr = func(); arr[0]. }
|
|
@ -0,0 +1,2 @@
|
||||||
|
struct pair { int a; int b; };
|
||||||
|
pair[] func(){ return [pair(1,2)]; } int main() { auto arr = func(); arr[0]. }
|
|
@ -1,11 +1,11 @@
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
../../bin/dcd-client $1 file.d -c70 > actual.txt
|
../../bin/dcd-client $1 implicit_array.d -c108 > actual.txt
|
||||||
diff actual.txt expected1.txt
|
diff actual.txt expected1.txt
|
||||||
|
|
||||||
../../bin/dcd-client $1 file.d -c143 > actual.txt
|
../../bin/dcd-client $1 excplicit_array.d -c98 > actual.txt
|
||||||
diff actual.txt expected1.txt
|
diff actual.txt expected1.txt
|
||||||
|
|
||||||
../../bin/dcd-client $1 file.d -c242 > actual.txt
|
../../bin/dcd-client $1 implicit_var.d -c108 > actual.txt
|
||||||
diff actual.txt expected2.txt
|
diff actual.txt expected1.txt
|
||||||
|
|
Loading…
Reference in New Issue