Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5194 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
- Loading branch information
Showing
18 changed files
with
296 additions
and
34 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
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
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
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 @@ | ||
module imports.test15117a; | ||
|
||
struct AssertResult {} | ||
|
||
auto test_usr_1() | ||
{ | ||
// 2. generate TyepInfoStructDeclaration | ||
auto x = typeid(AssertResult); | ||
} |
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,23 @@ | ||
// REQUIRED_ARGS: -o- | ||
// PERMUTE_ARGS: | ||
// EXTRA_SOURCES: imports/test15117a.d | ||
|
||
import users = imports.test15117a; | ||
|
||
void RunApiTest(T...)() | ||
{ | ||
foreach (name; __traits(allMembers, users)) | ||
{ | ||
// 3. list the name of TyepInfoStructDeclaration, | ||
// but it's just internal symbol and invisible. | ||
mixin("alias func = users . " ~ name ~ ";"); | ||
} | ||
} | ||
|
||
void main() | ||
{ | ||
// 1. run semantic3 of users.test_usr_1 | ||
users.test_usr_1(); | ||
|
||
RunApiTest!(); | ||
} |
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,7 @@ | ||
/************************************************/ | ||
// 15180: [REG2.069.0-b1] Segfault with empty struct used as UDA | ||
|
||
struct foo { } | ||
@foo bar () { } | ||
|
||
/************************************************/ |
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 @@ | ||
// EXTRA_SOURCES: imports/ice15176a.d imports/ice15176b.d | ||
// COMPILE_SEPARATELY | ||
|
||
import imports.ice15176a; | ||
|
||
void main() | ||
{ | ||
func(); | ||
} |
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,11 @@ | ||
// EXTRA_SOURCES: imports/ice15200a.d imports/ice15200b.d | ||
// COMPILE_SEPARATELY | ||
|
||
module ice15200; | ||
|
||
import imports.ice15200a; | ||
|
||
void main() | ||
{ | ||
f(); | ||
} |
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,13 @@ | ||
module imports.ice15176a; | ||
|
||
import imports.ice15176b; | ||
|
||
struct Stack(T) | ||
{ | ||
T[] data; | ||
} | ||
|
||
void func() | ||
{ | ||
alias ValStack = Stack!CodepointSet; | ||
} |
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 @@ | ||
module imports.ice15176b; | ||
|
||
alias CodepointSet = InversionList!(); | ||
|
||
struct InversionList() | ||
{ | ||
uint[] data; | ||
} |
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,12 @@ | ||
import imports.ice15200b; | ||
|
||
auto f() // not void | ||
{ | ||
sub([0], false); | ||
} | ||
void sub(R)(R list, bool b) | ||
{ | ||
foreach (i; list.filter!(delegate(e) => b)) | ||
{ | ||
} | ||
} |
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,41 @@ | ||
module imports.ice15200b; | ||
|
||
template filter(alias pred) | ||
{ | ||
auto filter(R)(R range) | ||
{ | ||
return FilterResult!(pred, R)(range); | ||
} | ||
} | ||
|
||
struct FilterResult(alias pred, R) | ||
{ | ||
R _input; | ||
|
||
this(R r) | ||
{ | ||
_input = r; | ||
while (_input.length && !pred(_input[0])) | ||
{ | ||
_input = _input[1..$]; | ||
} | ||
} | ||
|
||
@property bool empty() | ||
{ | ||
return _input.length == 0; | ||
} | ||
|
||
@property auto ref front() | ||
{ | ||
return _input[0]; | ||
} | ||
|
||
void popFront() | ||
{ | ||
do | ||
{ | ||
_input = _input[1..$]; | ||
} while (_input.length && !pred(_input[0])); | ||
} | ||
} |
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,7 @@ | ||
module imports.link15194b; | ||
|
||
auto fun() | ||
{ | ||
import imports.link15194std; | ||
return new RedBlackTree!int; | ||
} |
Oops, something went wrong.