aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/inline_1.rs
blob: 4b0f991765a3e72d47d2e3a7cba0f8bf9403ee57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-additional-options "-fdump-tree-gimple" }
#[inline]
fn test_a() {}

// { dg-final { scan-tree-dump-times {always_inline} 1 gimple } }
#[inline(always)]
fn test_b() {}

#[inline(never)]
fn test_c() {}

fn main() {
    test_a();
    test_b();
    test_c();
}