mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add Natvis visualiser and debuginfo tests for f16
This commit is contained in:
@@ -42,11 +42,14 @@
|
||||
// gdb-command:print *u64_ref
|
||||
// gdb-check:$12 = 64
|
||||
|
||||
// gdb-command:print *f16_ref
|
||||
// gdb-check:$13 = 1.5
|
||||
|
||||
// gdb-command:print *f32_ref
|
||||
// gdb-check:$13 = 2.5
|
||||
// gdb-check:$14 = 2.5
|
||||
|
||||
// gdb-command:print *f64_ref
|
||||
// gdb-check:$14 = 3.5
|
||||
// gdb-check:$15 = 3.5
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
@@ -100,6 +103,10 @@
|
||||
// lldbg-check:[...] 64
|
||||
// lldbr-check:(u64) *u64_ref = 64
|
||||
|
||||
// lldb-command:v *f16_ref
|
||||
// lldbg-check:[...] 1.5
|
||||
// lldbr-check:(f16) *f16_ref = 1.5
|
||||
|
||||
// lldb-command:v *f32_ref
|
||||
// lldbg-check:[...] 2.5
|
||||
// lldbr-check:(f32) *f32_ref = 2.5
|
||||
@@ -111,6 +118,7 @@
|
||||
#![allow(unused_variables)]
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
#![feature(f16)]
|
||||
|
||||
fn main() {
|
||||
let bool_val: bool = true;
|
||||
@@ -149,6 +157,9 @@ fn main() {
|
||||
let u64_val: u64 = 64;
|
||||
let u64_ref: &u64 = &u64_val;
|
||||
|
||||
let f16_val: f16 = 1.5;
|
||||
let f16_ref: &f16 = &f16_val;
|
||||
|
||||
let f32_val: f32 = 2.5;
|
||||
let f32_ref: &f32 = &f32_val;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user