about summary refs log tree commit diff
path: root/tests/run-make/core-no-fp-fmt-parse/rmake.rs
blob: 2748d4359c36565057f5cad7bc1e8495951d3174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This test checks that the core library of Rust can be compiled without enabling
// support for formatting and parsing floating-point numbers.

extern crate run_make_support;

use run_make_support::rustc;
use std::path::PathBuf;

fn main() {
    rustc()
        .edition("2021")
        .arg("-Dwarnings")
        .crate_type("rlib")
        .input("../../../library/core/src/lib.rs")
        .cfg("no_fp_fmt_parse")
        .run();
}