-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This does not appear to have any effect and allowing it may be confusing to users. Deprecate it with the idea of eventual removal.
- Loading branch information
Showing
3 changed files
with
29 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,3 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
[warning] <...>/bit-bitorder.spicy:14:5-14:56: &bit-order on bitfield item 'x1015_msb0' has no effect and is deprecated | ||
[warning] <...>/bit-bitorder.spicy:15:5-15:56: &bit-order on bitfield item 'x1015_lsb0' has no effect and is deprecated |
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,17 @@ | ||
# @TEST-EXEC: spicyc -p -o /dev/null %INPUT 2>output | ||
# @TEST-EXEC: btest-diff output | ||
# | ||
# @TEST-DOC: Test deprecated "&bit-order" attribute on bits emits deprecation warning. | ||
|
||
module Mini; | ||
|
||
import spicy; | ||
|
||
public type X = unit { | ||
be16_lsb0: bitfield(16) { | ||
x0: 0; | ||
x1015: 10..15; | ||
x1015_msb0: 10..15 &bit-order=spicy::BitOrder::MSB0; | ||
x1015_lsb0: 10..15 &bit-order=spicy::BitOrder::LSB0; | ||
}; | ||
}; |