-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Support for user-defined module fmt for all compilers (#5441)
This PR fixes #5283 I added the corresponding test. <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
- Loading branch information
1 parent
80583b7
commit 9a7f992
Showing
6 changed files
with
151 additions
and
8 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
60 changes: 60 additions & 0 deletions
60
Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/git-issue-5283.dfy
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,60 @@ | ||
// RUN: %testDafnyForEachCompiler "%s" | ||
|
||
/* Obtained from | ||
https://pkg.go.dev/std | ||
by running on the console | ||
copy([...document.querySelectorAll( | ||
"td > div.UnitDirectories-pathCell > div > span, "+ | ||
"td > div.UnitDirectories-pathCell > div > a")] | ||
.map(e => "module " + e.textContent + " {}").join("\n")) | ||
*/ | ||
module archive {} | ||
module bufio {} | ||
module builtin {} | ||
module bytes {} | ||
module cmp {} | ||
module compress {} | ||
module container {} | ||
module context {} | ||
module crypto {} | ||
module database {} | ||
module debug {} | ||
module embed {} | ||
module encoding {} | ||
module errors {} | ||
module expvar {} | ||
module flag {} | ||
module fmt {} | ||
module go {} | ||
module hash {} | ||
module html {} | ||
module image {} | ||
module index {} | ||
module internal {} | ||
module io {} | ||
module log {} | ||
module maps {} | ||
module math {} | ||
module mime {} | ||
module net {} | ||
module os {} | ||
module path {} | ||
module plugin {} | ||
module reflect {} | ||
module regexp {} | ||
module runtime {} | ||
module slices {} | ||
module sort {} | ||
module strconv {} | ||
module strings {} | ||
module sync {} | ||
module syscall {} | ||
module testing {} | ||
module text {} | ||
module time {} | ||
module unicode {} | ||
module unsafe {} | ||
|
||
method Main(){ | ||
print "done\n"; | ||
} |
1 change: 1 addition & 0 deletions
1
Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/git-issue-5283.dfy.expect
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 @@ | ||
done |
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 @@ | ||
Avoid name clashes with Go built-in modules |