From 4547b622d8d29df964fa2914213088b148c498fc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:32 +0200 Subject: Merging upstream version 1.67.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/cc/tests/test.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'vendor/cc/tests/test.rs') diff --git a/vendor/cc/tests/test.rs b/vendor/cc/tests/test.rs index 3c9b4dc49..35ef87577 100644 --- a/vendor/cc/tests/test.rs +++ b/vendor/cc/tests/test.rs @@ -343,6 +343,14 @@ fn gnu_static() { test.cmd(0).must_have("-static").must_not_have("-shared"); } +#[test] +fn gnu_no_dash_dash() { + let test = Test::gnu(); + test.gcc().file("foo.c").compile("foo"); + + test.cmd(0).must_not_have("--"); +} + #[test] fn msvc_smoke() { reset_env(); @@ -411,3 +419,11 @@ fn msvc_no_static_crt() { test.cmd(0).must_have("-MD"); } + +#[test] +fn msvc_no_dash_dash() { + let test = Test::msvc(); + test.gcc().file("foo.c").compile("foo"); + + test.cmd(0).must_not_have("--"); +} -- cgit v1.2.3