gcc/testsuite/rust/compile/inline_2.rs
raw| 1 | // { dg-additional-options "-w" } |
| 2 | #[inline(A)] // { dg-error "invalid argument, .inline. attribute only accepts .always. or .never." } |
| 3 | fn test_a() {} |
| 4 | |
| 5 | #[inline(A, B)] // { dg-error "invalid number of arguments" } |
| 6 | fn test_b() {} |
| 7 | |
| 8 | #[inline()] // { dg-error "invalid number of arguments" } |
| 9 | fn test_c() {} |