-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5977: Add unit test checking the precedence of parsed decls with the…
… same name (test is failing right now)
- Loading branch information
1 parent
3a58c3c
commit 9cd5976
Showing
3 changed files
with
34 additions
and
0 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,14 @@ | ||
// Test declarations used for precedence tests | ||
|
||
// This first decl makes the cut | ||
// all following decls with the same type and name are ignored and warned about | ||
decl/precedence_test/1 | ||
{ | ||
diffusemap textures/numbers/1 | ||
} | ||
|
||
decl/precedence_test/1 | ||
{ | ||
diffusemap textures/numbers/2 | ||
} | ||
|
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 @@ | ||
// Test declarations used for precedence tests | ||
|
||
// This one is ignored since a decl in the precedence_test1.decl has already been declared with this name | ||
// The file precedence_test1.decl is sorted before precedence_test2.decl, so it takes precedence | ||
decl/precedence_test/1 | ||
{ | ||
diffusemap textures/numbers/3 | ||
} |