diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/cl-fallback.c | 4 | ||||
| -rw-r--r-- | clang/test/Driver/cl-options.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/clang/test/Driver/cl-fallback.c b/clang/test/Driver/cl-fallback.c index d90e5fa4964..a8279d3d099 100644 --- a/clang/test/Driver/cl-fallback.c +++ b/clang/test/Driver/cl-fallback.c @@ -5,7 +5,8 @@ // command-line option, e.g. on Mac where %s is commonly under /Users. // RUN: %clang_cl /fallback /Dfoo=bar /Ubaz /Ifoo /O0 /Ox /GR /GR- /Gy /Gy- \ -// RUN: /LD /LDd /MD /MDd /MTd /MT /FImyheader.h /Zi -### -- %s 2>&1 \ +// RUN: /Gw /Gw- /LD /LDd /MD /MDd /MTd /MT /FImyheader.h /Zi \ +// RUN: -### -- %s 2>&1 \ // RUN: | FileCheck %s // CHECK: "-fdiagnostics-format" "msvc-fallback" // CHECK: || @@ -19,6 +20,7 @@ // CHECK: "/Ox" // CHECK: "/GR-" // CHECK: "/Gy-" +// CHECK: "/Gw-" // CHECK: "/Z7" // CHECK: "/FImyheader.h" // CHECK: "/LD" diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 84fa2699eef..a76626464ab 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -25,13 +25,17 @@ // GR_: -fno-rtti // RUN: %clang_cl /Gy -### -- %s 2>&1 | FileCheck -check-prefix=Gy %s -// Gy: -fdata-sections // Gy: -ffunction-sections // RUN: %clang_cl /Gy /Gy- -### -- %s 2>&1 | FileCheck -check-prefix=Gy_ %s -// Gy_-NOT: -fdata-sections // Gy_-NOT: -ffunction-sections +// RUN: %clang_cl /Gw -### -- %s 2>&1 | FileCheck -check-prefix=Gw %s +// Gw: -fdata-sections + +// RUN: %clang_cl /Gw /Gw- -### -- %s 2>&1 | FileCheck -check-prefix=Gw_ %s +// Gw_-NOT: -fdata-sections + // RUN: %clang_cl /Imyincludedir -### -- %s 2>&1 | FileCheck -check-prefix=SLASH_I %s // RUN: %clang_cl /I myincludedir -### -- %s 2>&1 | FileCheck -check-prefix=SLASH_I %s // SLASH_I: "-I" "myincludedir" |

