-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #722 from powdr-labs/zero_with_second_argument
Fix handling of ".zero" with second argument.
- Loading branch information
Showing
3 changed files
with
53 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#![no_std] | ||
|
||
// This is stored as a data with the ".zero" directive, | ||
// but in the variant where it repeats something else than zero. | ||
const DATA: &str = "1111111111111111"; | ||
|
||
#[no_mangle] | ||
pub fn main() { | ||
for c in DATA.chars() { | ||
assert_eq!(c, '1'); | ||
} | ||
} |