gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / unsafe7.rs
bloba6b69e1ac37505310a934b2b1c22f27ee9503ac3
1 extern "C" {
2     fn printf(fmt: *const i8, ...);
5 fn main() {
6     let s = "hey\0";
8     printf(s as *const str as *const i8); // { dg-error "call to extern function" }