diff options
| -rw-r--r-- | clang/test/Driver/as-options.s | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/clang/test/Driver/as-options.s b/clang/test/Driver/as-options.s index e04c959b8bd..48f19567b30 100644 --- a/clang/test/Driver/as-options.s +++ b/clang/test/Driver/as-options.s @@ -39,10 +39,22 @@ // Test that assembler options don't cause warnings when there's no assembler // stage. -// RUN: %clang -mincremental-linker-compatible -E -o /dev/null %s 2>&1 \ +// RUN: %clang -mincremental-linker-compatible -E \ +// RUN: -o /dev/null -x c++ %s 2>&1 \ // RUN: | FileCheck --check-prefix=WARN --allow-empty %s -// RUN: %clang -mimplicit-it=always -target armv7-linux-gnueabihf -E %s \ +// RUN: %clang -mincremental-linker-compatible -E \ +// RUN: -o /dev/null -x assembler-with-cpp %s 2>&1 \ // RUN: | FileCheck --check-prefix=WARN --allow-empty %s -// RUN: %clang -Wa,-mbig-obj -target i386-pc-windows -E %s \ +// RUN: %clang -mimplicit-it=always -target armv7-linux-gnueabi -E \ +// RUN: -o /dev/null -x c++ %s 2>&1 \ +// RUN: | FileCheck --check-prefix=WARN --allow-empty %s +// RUN: %clang -mimplicit-it=always -target armv7-linux-gnueabi -E \ +// RUN: -o /dev/null -x assembler-with-cpp %s 2>&1 \ +// RUN: | FileCheck --check-prefix=WARN --allow-empty %s +// RUN: %clang -Wa,-mbig-obj -target i386-pc-windows -E \ +// RUN: -o /dev/null -x c++ %s 2>&1 \ +// RUN: | FileCheck --check-prefix=WARN --allow-empty %s +// RUN: %clang -Wa,-mbig-obj -target i386-pc-windows -E \ +// RUN: -o /dev/null -x assembler-with-cpp %s 2>&1 \ // RUN: | FileCheck --check-prefix=WARN --allow-empty %s // WARN-NOT: unused |

