Fix test failure caused by r329965.
authorEli Friedman <efriedma@codeaurora.org>
Thu, 12 Apr 2018 22:50:50 +0000 (22:50 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Thu, 12 Apr 2018 22:50:50 +0000 (22:50 +0000)
"-mllvm" options get parsed slightly earlier, and -arm-restrict-it is
only available if the ARM target is compiled in. Invoke "clang -cc1"
directly to avoid the issue.

llvm-svn: 329968

clang/test/Preprocessor/init.c

index 1b4f500..104a8f3 100644 (file)
 // Thumbebv7: #define __THUMB_INTERWORK__ 1
 // Thumbebv7: #define __thumb2__ 1
 
-// RUN: %clang -E -dM -ffreestanding -target thumbv7-pc-mingw32 %s -o - | FileCheck -match-full-lines -check-prefix THUMB-MINGW %s
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=thumbv7-pc-windows-gnu -fdwarf-exceptions %s -o - | FileCheck -match-full-lines -check-prefix THUMB-MINGW %s
 
 // THUMB-MINGW:#define __ARM_DWARF_EH__ 1