[clang] e26bbae - [clang] [test] Remove newly added tests that fail on Darwin

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 11 01:08:34 PST 2022


Author: Martin Storsjö
Date: 2022-01-11T11:06:29+02:00
New Revision: e26bbae30218a35d76a79fe90b0e41dd0f71b779

URL: https://github.com/llvm/llvm-project/commit/e26bbae30218a35d76a79fe90b0e41dd0f71b779
DIFF: https://github.com/llvm/llvm-project/commit/e26bbae30218a35d76a79fe90b0e41dd0f71b779.diff

LOG: [clang] [test] Remove newly added tests that fail on Darwin

These tests were recently added in
50ec1306d060e46e0d53c9f5d8a052e1b0d10d3b. The clang-cl invocations
interpret the source path, %s, which begins with /Users, as a cl
option /U. Normally this is worked around by passing -- before
the arguments that must be interpreted as files, not options, but
in the current test, the -link option must be passed last, after any
file names.

Added: 
    

Modified: 
    clang/test/Driver/diagnostics.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/diagnostics.c b/clang/test/Driver/diagnostics.c
index 16e00345eb51..73f427c02dcc 100644
--- a/clang/test/Driver/diagnostics.c
+++ b/clang/test/Driver/diagnostics.c
@@ -40,14 +40,4 @@
 // RUN:   --start-no-unused-arguments -fsyntax-only --end-no-unused-arguments \
 // RUN:   -lfoo -Werror %s 2>&1 | FileCheck %s
 
-// Test clang-cl warning about unused linker options.
-// RUN: not %clang_cl -fsyntax-only /WX %s \
-// RUN:   -link 2>&1 | FileCheck %s --check-prefix=CL-WARNING
-
-// Test clang-cl ignoring the warning with --start-no-unused-arguments.
-// RUN: %clang_cl -fsyntax-only /WX %s \
-// RUN:   --start-no-unused-arguments -link --end-no-unused-arguments 2>&1 | count 0
-
 // CHECK: -lfoo: 'linker' input unused
-
-// CL-WARNING: argument unused during compilation: '-link'


        


More information about the cfe-commits mailing list