aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/abi-vardaic.rs
blob: b5e0c9a9eff67c9276eb003ad5d672ceae2d39c2 (plain)
1
2
3
4
5
6
7
// https://doc.rust-lang.org/error_codes/E0045.html
#![allow(unused)]
fn main() {
    extern "Rust" {
        fn foo(x: u8, ...); // { dg-error "C-variadic function must have C or cdecl calling convention" }
    }
}