diff options
| author | Austin Hicks <camlorn@camlorn.net> | 2017-03-10 14:24:50 -0500 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2017-04-11 14:36:08 +0300 |
| commit | 8b00837691d9757b6c607b28b42d33dd581cac3b (patch) | |
| tree | 5f874b1c09e6c4711416d23a5382ebf3ec6bcbe9 | |
| parent | 912599944effe3ad379622c173e8f9a85dd7eaac (diff) | |
| download | rust-8b00837691d9757b6c607b28b42d33dd581cac3b.tar.gz rust-8b00837691d9757b6c607b28b42d33dd581cac3b.zip | |
UI test for -Z print-fuel=foo
| -rw-r--r-- | src/test/ui/print-fuel/print-fuel.rs | 21 | ||||
| -rw-r--r-- | src/test/ui/print-fuel/print-fuel.stdout | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/print-fuel/print-fuel.rs b/src/test/ui/print-fuel/print-fuel.rs new file mode 100644 index 00000000000..0d9e243763f --- /dev/null +++ b/src/test/ui/print-fuel/print-fuel.rs @@ -0,0 +1,21 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![crate_name="foo"] +#![allow(dead_code)] + +// compile-flags: -Z print-fuel=foo + +struct S1(u8, u16, u8); +struct S2(u8, u16, u8); +struct S3(u8, u16, u8); + +fn main() { +} diff --git a/src/test/ui/print-fuel/print-fuel.stdout b/src/test/ui/print-fuel/print-fuel.stdout new file mode 100644 index 00000000000..cc88cc077bb --- /dev/null +++ b/src/test/ui/print-fuel/print-fuel.stdout @@ -0,0 +1 @@ +Fuel used by foo: 3 |
