File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ PrimaryExpression @directUnwrap
294
294
| <MixinExpression
295
295
| <ImportExpression
296
296
| <NewExpression
297
- | FundamentalType " ." Identifier
297
+ | FundamentalType TypeSuffixes ? " ." Identifier
298
298
// | TypeCtor ? " (" Type " )" " ." Identifier
299
299
// | " (" Type " )" " ." TemplateInstance
300
300
// | FundamentalType " (" NamedArgumentList ? " )"
@@ -1962,16 +1962,19 @@ FundamentalType
1962
1962
| " creal"
1963
1963
| " void"
1964
1964
;
1965
+ TypeSuffixes
1966
+ = TypeSuffix TypeSuffixes ?
1967
+ ;
1965
1968
PostfixType @directUnwrap
1966
1969
= <BasicType
1967
- | PostfixType " *"
1968
- | PostfixType ArrayTypeSuffix
1969
- | PostfixType " delegate" Parameters MemberFunctionAttributes ?
1970
- | PostfixType " function" Parameters FunctionAttributes ?
1970
+ | PostfixType TypeSuffix
1971
1971
;
1972
- ArrayTypeSuffix
1973
- = " [" " ]"
1972
+ TypeSuffix
1973
+ = " *"
1974
+ | " [" " ]"
1974
1975
| " [" ArrayTypeSuffixContent " ]"
1976
+ | " delegate" Parameters MemberFunctionAttributes ?
1977
+ | " function" Parameters FunctionAttributes ?
1975
1978
;
1976
1979
ArrayTypeSuffixContent @backtrack
1977
1980
= <Type
Original file line number Diff line number Diff line change
1
+ const e1 = int * .init ;
2
+ const e2 = int [1 ].init ;
3
+ const e3 = int * [0 ].init ;
Original file line number Diff line number Diff line change @@ -616,6 +616,8 @@ int main(string[] args)
616
616
" --test-dir" , buildPath(dmdDir, " compiler/test/runnable_cxx" ),
617
617
" --test-dir-fail-dmd" ,
618
618
buildPath(dmdDir, " compiler/test/fail_compilation" ),
619
+ " --test-dir" , buildPath(dmdDir, " druntime/src" ),
620
+ " --test-dir" , buildPath(dmdDir, " compiler/src" ),
619
621
]);
620
622
version (Windows )
621
623
{
You can’t perform that action at this time.
0 commit comments