]>
git.proxmox.com Git - rustc.git/blob - vendor/cc/tests/cxxflags.rs
3 use crate::support
::Test
;
6 /// This test is in its own module because it modifies the environment and would affect other tests
7 /// when run in parallel with them.
9 fn gnu_no_warnings_if_cxxflags() {
10 env
::set_var("CXXFLAGS", "-arbitrary");
11 let test
= Test
::gnu();
12 test
.gcc().file("foo.cpp").cpp(true).compile("foo");
14 test
.cmd(0).must_not_have("-Wall").must_not_have("-Wextra");