aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/inline_2.rs
blob: b6cfc83be72531f8c4b1d38784f34501177d82f4 (plain)
1
2
3
4
5
6
7
8
9
// { dg-additional-options "-w" }
#[inline(A)] // { dg-error "invalid argument, .inline. attribute only accepts .always. or .never." }
fn test_a() {}

#[inline(A, B)] // { dg-error "invalid number of arguments" }
fn test_b() {}

#[inline()] // { dg-error "invalid number of arguments" }
fn test_c() {}