☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
attr_cold.rs
☽
☼
gcc/testsuite/rust/compile/attr_cold.rs
code
plain
raw
1
// { dg-additional-options "-fdump-tree-gimple" }
2
#[cold]
3
fn cold_function() -> i32 {
4
42
5
}
6
7
fn main() -> i32 {
8
// { dg-final { scan-tree-dump-times {__attribute__\(\(cdecl, cold\)\)} 1 gimple } }
9
cold_function();
10
11
0
12
}