mirror of
https://github.com/dlang-community/DCD.git
synced 2025-04-25 21:00:02 +03:00
added test for #717
This commit is contained in:
parent
dc1305364c
commit
33fd0db07d
3 changed files with 28 additions and 0 deletions
8
tests/tc717/expected.txt
Normal file
8
tests/tc717/expected.txt
Normal 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
15
tests/tc717/file.d
Normal 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
5
tests/tc717/run.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue