From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/print-fuel/print-fuel.rs | 13 +++++++++++++ tests/ui/print-fuel/print-fuel.stderr | 1 + 2 files changed, 14 insertions(+) create mode 100644 tests/ui/print-fuel/print-fuel.rs create mode 100644 tests/ui/print-fuel/print-fuel.stderr (limited to 'tests/ui/print-fuel') diff --git a/tests/ui/print-fuel/print-fuel.rs b/tests/ui/print-fuel/print-fuel.rs new file mode 100644 index 000000000..f68de00b9 --- /dev/null +++ b/tests/ui/print-fuel/print-fuel.rs @@ -0,0 +1,13 @@ +#![crate_name="foo"] +#![allow(dead_code)] + +// (#55495: The --error-format is to sidestep an issue in our test harness) +// compile-flags: -C opt-level=0 --error-format human -Z print-fuel=foo +// check-pass + +struct S1(u8, u16, u8); +struct S2(u8, u16, u8); +struct S3(u8, u16, u8); + +fn main() { +} diff --git a/tests/ui/print-fuel/print-fuel.stderr b/tests/ui/print-fuel/print-fuel.stderr new file mode 100644 index 000000000..cc88cc077 --- /dev/null +++ b/tests/ui/print-fuel/print-fuel.stderr @@ -0,0 +1 @@ +Fuel used by foo: 3 -- cgit v1.2.3