☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
rustc_attr1.rs
☽
☼
gcc/testsuite/rust/compile/rustc_attr1.rs
code
plain
raw
1
// { dg-additional-options "-w" }
2
3
#![feature(rustc_attrs)]
4
5
pub struct NotI8(i8);
6
7
impl NotI8 {
8
#[inline]
9
#[rustc_inherit_overflow_checks]
10
pub fn add(self, other: NotI8) -> NotI8 {
11
NotI8(self.0 + other.0)
12
}
13
}