Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler panic: yulgen panic on <repeated name> #890

Open
g-r-a-n-t opened this issue May 24, 2023 · 0 comments
Open

compiler panic: yulgen panic on <repeated name> #890

g-r-a-n-t opened this issue May 24, 2023 · 0 comments

Comments

@g-r-a-n-t
Copy link
Member

g-r-a-n-t commented May 24, 2023

#test
// todo: yulgen panic on `identity`
// fn identity() {
fn test_identity() {
    let buf: MemoryBuffer = MemoryBuffer::from_u8(value: 0x42) 
    let mut result: MemoryBufferReader = precompiles::identity(buf).reader()
    assert result.read_u8() == 0x42
}

https://github.com/g-r-a-n-t/fe/blob/bd18a94b0c295105c598918c349a2781b35e1978/crates/tests/fixtures/files/precompiles.fe#L31-L38

Originally posted by @g-r-a-n-t in #885 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant