Added auto cast test

This commit is contained in:
RUSshy 2021-08-06 19:00:50 +02:00 committed by GitHub
parent f38d36ab41
commit c36cdcbde7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
identifiers
alignof k
data v
init k
mangleof k
sizeof k
stringof k
tupleof k

View File

@ -0,0 +1 @@
struct A { float data; } A a; auto ptr = cast(A*) &a; ptr.

View File

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