[clang] c6a1b16 - clang: try to fix Driver/undefined-libs.cpp on non-linux

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 06:45:49 PST 2021


Author: Nico Weber
Date: 2021-02-10T09:45:04-05:00
New Revision: c6a1b16db7dc7a0af8951b39f29ddbe639a98a3b

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

LOG: clang: try to fix Driver/undefined-libs.cpp on non-linux

Added: 
    

Modified: 
    clang/test/Driver/undefined-libs.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/undefined-libs.cpp b/clang/test/Driver/undefined-libs.cpp
index 99006e14ddd4..f7bfba071b34 100644
--- a/clang/test/Driver/undefined-libs.cpp
+++ b/clang/test/Driver/undefined-libs.cpp
@@ -1,15 +1,14 @@
+// Check that all the following options print a warning when given a
+// non-existent value. But only one warning.
 
-// Check that all the following options print a warning when given a non-existent
-// value. But only one warning.
-
-// RUN: not %clangxx -target=i386-unknown-linux -stdlib=nostdlib %s 2>&1 | FileCheck --check-prefix=STDLIB %s
+// RUN: not %clangxx --target=i386-unknown-linux -stdlib=nostdlib %s 2>&1 | FileCheck --check-prefix=STDLIB %s
 // STDLIB: error: invalid library name in argument '-stdlib=nostdlib'
 // STDLIB-EMPTY:
-//
-// RUN: not %clangxx -target=i386-unknown-linux -rtlib=nortlib %s 2>&1 | FileCheck --check-prefix=RTLIB %s
+
+// RUN: not %clangxx --target=i386-unknown-linux -rtlib=nortlib %s 2>&1 | FileCheck --check-prefix=RTLIB %s
 // RTLIB: error: invalid runtime library name in argument '-rtlib=nortlib'
 // RTLIB-EMPTY:
-//
-// RUN: not %clangxx -target=i386-unknown-linux -unwindlib=nounwindlib %s 2>&1 | FileCheck --check-prefix=UNWINDLIB %s
+
+// RUN: not %clangxx --target=i386-unknown-linux -unwindlib=nounwindlib %s 2>&1 | FileCheck --check-prefix=UNWINDLIB %s
 // UNWINDLIB: error: invalid unwind library name in argument '-unwindlib=nounwindlib'
 // UNWINDLIB-EMPTY:


        


More information about the cfe-commits mailing list