-
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.
- Loading branch information
1 parent
e5dc996
commit 0e53e96
Showing
8 changed files
with
64 additions
and
4 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,9 @@ | ||
identifiers | ||
alignof k | ||
init k | ||
mainCharacter l | ||
mangleof k | ||
sideCharacter l | ||
sizeof k | ||
stringof k | ||
tupleof k |
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 | ||
a v | ||
alignof k | ||
init k | ||
mangleof k | ||
sizeof k | ||
stringof k | ||
tupleof k |
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,15 @@ | ||
module tc_named_mixin; | ||
|
||
template person(){} | ||
|
||
struct nametester | ||
{ | ||
mixin person mainCharacter; | ||
mixin person sideCharacter; | ||
} | ||
|
||
void main() | ||
{ | ||
nametester n; | ||
n. | ||
} |
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,20 @@ | ||
module file2; | ||
|
||
struct Foo | ||
{ | ||
template Deep() | ||
{ | ||
int a; | ||
} | ||
} | ||
|
||
struct Bar | ||
{ | ||
mixin Foo.Deep d; | ||
} | ||
|
||
void main() | ||
{ | ||
Bar bar; | ||
bar.d. | ||
} |
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 file1.d -c171 > actual1.txt | ||
diff actual1.txt expected1.txt | ||
|
||
../../bin/dcd-client $1 file2.d -c153 > actual2.txt | ||
diff actual2.txt expected2.txt |