]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/vtabletype.rs
Suggest defining type parameter when appropriate
[rust.git] / src / test / codegen / vtabletype.rs
1 // This test depends on a patch that was committed to upstream LLVM
2 // after 5.0, then backported to the Rust LLVM fork.
3
4 // ignore-windows
5 // ignore-macos
6
7 // compile-flags: -g -C no-prepopulate-passes
8
9 // CHECK-LABEL: @main
10 // CHECK: {{.*}}DICompositeType{{.*}}name: "vtable",{{.*}}vtableHolder:{{.*}}
11
12 pub trait T {
13 }
14
15 impl T for f64 {
16 }
17
18 pub fn main() {
19     let d = 23.0f64;
20     let td = &d as &T;
21 }