added test
This commit is contained in:
parent
41cb4cb897
commit
9850217828
|
|
@ -0,0 +1,2 @@
|
||||||
|
identifiers
|
||||||
|
from_cast v C from_cast stdin 165
|
||||||
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue