sapir / gcc-rust

a (WIP) Rust frontend for gcc / a gcc backend for rustc
GNU General Public License v2.0
203 stars 5 forks source link

What are you using as tests? #16

Closed bjorn3 closed 4 years ago

bjorn3 commented 4 years ago

Just curious. Couldn't find it in tree.

sapir commented 4 years ago

I'm just manually compiling random bits of code, and then trying to fix the resulting random errors, no real tests.

bjorn3 commented 4 years ago

Maybe use the tests from https://github.com/bjorn3/rustc_codegen_cranelift/tree/c6086a8fd7489fa6cf18b7dd0baf73cf21386c77/example? The example.rs and mini_core_hello_world.rs files depend on mini_core.rs, the rest requires core, alloc and std. cg_clif is dual licensed as MIT or Apache-2.0. MIT is compatible with GPLv3, so you can just copy them.

sapir commented 4 years ago

Thanks!

I set up a test script: https://github.com/sapir/gcc-rust-tests

I still haven't added your tests, though. I'll open an issue in the other repo.