test: merge arm-intrin into ms-intrin, fix invocation

This merges the two tests into one since there is no real reason to separate
them.  It also fixes the test invocation to specify -fms-compatibility without
which we would end up without an Intrin.h header.

llvm-svn: 212563
This commit is contained in:
Saleem Abdulrasool 2014-07-08 20:21:29 +00:00
parent 047ea1717b
commit 074736f576
2 changed files with 5 additions and 6 deletions

View File

@ -1,6 +0,0 @@
// RUN: %clang -target armv7-windows -I %S/Inputs/include -Xclang -verify -E %s
// expected-no-diagnostics
typedef __SIZE_TYPE__ size_t;
#include <Intrin.h>

View File

@ -8,6 +8,11 @@
// RUN: -ffreestanding -fsyntax-only -Werror \
// RUN: -isystem %S/Inputs/include %s
// RUN: %clang_cc1 -triple thumbv7--windows \
// RUN: -ffreestanding -fsyntax-only -fms-compatibility -fmsc-version=1700 \
// RUN: -Werror \
// RUN: -isystem %S/Inputs/include %s
// Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
// stddef.h. Work around it with this typedef.
typedef __SIZE_TYPE__ size_t;