added test

This commit is contained in:
ryuukk 2023-02-09 03:45:35 +01:00
parent 41cb4cb897
commit 9850217828
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,2 @@
identifiers
from_cast v C from_cast stdin 165

18
tests/tc_auto_cast/file.d Normal file
View File

@ -0,0 +1,18 @@
struct A
{
struct B
{
struct C
{
int inside_c;
}
int inside_b;
}
int inside_a;
}
void main()
{
auto from_cast = cast(A.B.C) A();
from_ca
}

View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d --extended -c154 > actual.txt
diff actual.txt expected.txt --strip-trailing-cr