Skip to content

Commit

Permalink
added test for #717
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuukk authored and WebFreak001 committed May 19, 2023
1 parent dc13053 commit 33fd0db
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/tc717/expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
identifiers
alignof k
init k
mangleof k
max k
min k
sizeof k
stringof k
15 changes: 15 additions & 0 deletions tests/tc717/file.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
struct A
{
B b;

void test()
{
auto here = b.inside_b;
here.
}
}

struct B
{
int inside_b;
}
5 changes: 5 additions & 0 deletions tests/tc717/run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 33fd0db

Please sign in to comment.