-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks on main/syntax modules during module exclusion (#3561)
* Add test for attributes on main/syntax modules * Check attributes on main/syntax module when excluding modules
- Loading branch information
Showing
13 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
k-distribution/tests/regression-new/excludedModuleAtts/Makefile
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,2 @@ | ||
SUBDIRS=$(filter-out Makefile, $(wildcard *)) | ||
include ../../../include/kframework/ktest-group.mak |
4 changes: 4 additions & 0 deletions
4
k-distribution/tests/regression-new/excludedModuleAtts/haskell/Makefile
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,4 @@ | ||
DEF=test | ||
KOMPILE_BACKEND=haskell | ||
|
||
include ../../../../include/kframework/ktest-fail.mak |
8 changes: 8 additions & 0 deletions
8
k-distribution/tests/regression-new/excludedModuleAtts/haskell/test-entry.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 @@ | ||
// Copyright (c) K Team. All Rights Reserved. | ||
module TEST-ENTRY-SYNTAX [concrete] | ||
|
||
endmodule | ||
|
||
module TEST-ENTRY | ||
|
||
endmodule |
1 change: 1 addition & 0 deletions
1
k-distribution/tests/regression-new/excludedModuleAtts/haskell/test-entry.k.out
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 @@ | ||
[Error] Compiler: Syntax module TEST-ENTRY-SYNTAX has excluded attribute [concrete]. |
8 changes: 8 additions & 0 deletions
8
k-distribution/tests/regression-new/excludedModuleAtts/haskell/test-main.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 @@ | ||
// Copyright (c) K Team. All Rights Reserved. | ||
module TEST-MAIN-SYNTAX | ||
|
||
endmodule | ||
|
||
module TEST-MAIN [concrete] | ||
|
||
endmodule |
1 change: 1 addition & 0 deletions
1
k-distribution/tests/regression-new/excludedModuleAtts/haskell/test-main.k.out
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 @@ | ||
[Error] Compiler: Main module TEST-MAIN has excluded attribute [concrete]. |
3 changes: 3 additions & 0 deletions
3
k-distribution/tests/regression-new/excludedModuleAtts/llvm/Makefile
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,3 @@ | ||
DEF=test | ||
|
||
include ../../../../include/kframework/ktest-fail.mak |
8 changes: 8 additions & 0 deletions
8
k-distribution/tests/regression-new/excludedModuleAtts/llvm/test-entry.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 @@ | ||
// Copyright (c) K Team. All Rights Reserved. | ||
module TEST-ENTRY-SYNTAX [symbolic] | ||
|
||
endmodule | ||
|
||
module TEST-ENTRY | ||
|
||
endmodule |
1 change: 1 addition & 0 deletions
1
k-distribution/tests/regression-new/excludedModuleAtts/llvm/test-entry.k.out
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 @@ | ||
[Error] Compiler: Syntax module TEST-ENTRY-SYNTAX has excluded attribute [symbolic]. |
8 changes: 8 additions & 0 deletions
8
k-distribution/tests/regression-new/excludedModuleAtts/llvm/test-main.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 @@ | ||
// Copyright (c) K Team. All Rights Reserved. | ||
module TEST-MAIN-SYNTAX | ||
|
||
endmodule | ||
|
||
module TEST-MAIN [symbolic] | ||
|
||
endmodule |
1 change: 1 addition & 0 deletions
1
k-distribution/tests/regression-new/excludedModuleAtts/llvm/test-main.k.out
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 @@ | ||
[Error] Compiler: Main module TEST-MAIN has excluded attribute [symbolic]. |
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