aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/const7.rs
blob: a7431c0c4d2d10ce1cdf6ba207ea73e2588b75c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-w -O0 -fdump-tree-gimple" }
struct Foo(usize, usize);

const A:Foo = Foo(123, 4546);

const B:usize = A.0;

fn main() {
    // { dg-final { scan-tree-dump-times {b = 123} 1 gimple } }
    let b = B;
}