message: tests: cover issue
diff: @@ -335,6 +335,10 @@ fn rustc_check() {
  .build();
  foo.cargo("rustc --profile check -- --emit=metadata").run();
  +
  + // Verify compatible usage of --profile with --release, issue #7488
  + foo.cargo("rustc --profile check --release -- --emit=metadata").run();
  + foo.cargo("rustc --profile test --release -- --emit=metadata").run();
  }
  #[cargo_test]
  