]> git.proxmox.com Git - rustc.git/blob - vendor/cc/tests/cxxflags.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / cc / tests / cxxflags.rs
1 mod support;
2
3 use crate::support::Test;
4 use std::env;
5
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.
8 #[test]
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");
13
14 test.cmd(0).must_not_have("-Wall").must_not_have("-Wextra");
15 }