From c6a1b16db7dc7a0af8951b39f29ddbe639a98a3b Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 10 Feb 2021 09:45:04 -0500 Subject: [PATCH] clang: try to fix Driver/undefined-libs.cpp on non-linux --- clang/test/Driver/undefined-libs.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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: