added test for #717

This commit is contained in:
ryuukk 2023-02-17 21:37:32 +01:00 committed by Jan Jurzitza
parent dc1305364c
commit 33fd0db07d
3 changed files with 28 additions and 0 deletions

8
tests/tc717/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

15
tests/tc717/file.d Normal file
View File

@ -0,0 +1,15 @@
struct A
{
B b;
void test()
{
auto here = b.inside_b;
here.
}
}
struct B
{
int inside_b;
}

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

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