-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework of #710, reuses the existing type construction Co-authored-by: ryuukk <ryuukk.dev@gmail.com>
- Loading branch information
1 parent
fe6ce04
commit dcffd37
Showing
5 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
identifiers | ||
alignof k | ||
init k | ||
inside_c v | ||
mangleof k | ||
sizeof k | ||
stringof k | ||
tupleof k |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
struct A | ||
{ | ||
struct B | ||
{ | ||
struct C | ||
{ | ||
int inside_c; | ||
} | ||
int inside_b; | ||
} | ||
int inside_a; | ||
} | ||
|
||
unittest | ||
{ | ||
auto from_cast = cast(A.B.C) nonExist; | ||
from_cast. | ||
} | ||
|
||
unittest | ||
{ | ||
struct A {} | ||
|
||
auto from_cast = cast(A.B.C) nonExist; | ||
from_cast. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
set -e | ||
set -u | ||
|
||
../../bin/dcd-client $1 file.d -c159 > actual1.txt | ||
diff actual1.txt expected1.txt --strip-trailing-cr | ||
|
||
../../bin/dcd-client $1 file.d -c239 > actual2.txt | ||
diff actual2.txt expected2.txt --strip-trailing-cr |