From: Peter Collingbourne Date: Wed, 13 Sep 2017 21:49:17 +0000 (+0000) Subject: Use -- to prevent the driver from confusing paths with flags, should fix Mac bot. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea180c9c542cf48ba30e05bded7a71a6b0706539;p=clang Use -- to prevent the driver from confusing paths with flags, should fix Mac bot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313201 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/whole-program-vtables.c b/test/Driver/whole-program-vtables.c index b558ee740e..de0c606594 100644 --- a/test/Driver/whole-program-vtables.c +++ b/test/Driver/whole-program-vtables.c @@ -1,11 +1,11 @@ // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -### %s 2>&1 | FileCheck --check-prefix=NO-LTO %s -// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -### %s 2>&1 | FileCheck --check-prefix=NO-LTO %s +// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -### -- %s 2>&1 | FileCheck --check-prefix=NO-LTO %s // NO-LTO: invalid argument '-fwhole-program-vtables' only allowed with '-flto' // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO %s -// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO %s +// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -flto -### -- %s 2>&1 | FileCheck --check-prefix=LTO %s // LTO: "-fwhole-program-vtables" // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -fno-whole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO-DISABLE %s -// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -fno-whole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO-DISABLE %s +// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -fno-whole-program-vtables -flto -### -- %s 2>&1 | FileCheck --check-prefix=LTO-DISABLE %s // LTO-DISABLE-NOT: "-fwhole-program-vtables"