Debian Codegraph @

gcc/testsuite/rust/compile/invalid_variadics.rs

raw
1 extern "C" {
2 pub fn dog(b: i32, a: ..., c: i32);
3 // { dg-error "..... must be the last argument of a C-variadic function" "" { target *-*-* } .-1 }
4 pub fn cat(a: ...);
5 // { dg-error "C-variadic function must be declared with at least one named argument" "" { target *-*-* } .-1 }
6 }