]> granicus.if.org Git - clang/commitdiff
test: merge arm-intrin into ms-intrin, fix invocation
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Jul 2014 20:21:29 +0000 (20:21 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Jul 2014 20:21:29 +0000 (20:21 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212563 91177308-0d34-0410-b5e6-96231b3b80d8

test/Headers/arm-intrin.c [deleted file]
test/Headers/ms-intrin.cpp

diff --git a/test/Headers/arm-intrin.c b/test/Headers/arm-intrin.c
deleted file mode 100644 (file)
index 294bc33..0000000
+++ /dev/null
@@ -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>
-
index 03f57a5955b9c2a07b6de44306a9fb4e2d2a2af0..d2cc62723a65f100c452b3cd4cab0640c6b4c147 100644 (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;