1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \ 2*0a6a1f1dSLionel Sambuc // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \ 3*0a6a1f1dSLionel Sambuc // RUN: -ffreestanding -fsyntax-only -Werror \ 4*0a6a1f1dSLionel Sambuc // RUN: -isystem %S/Inputs/include %s 5*0a6a1f1dSLionel Sambuc 6*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu broadwell \ 7*0a6a1f1dSLionel Sambuc // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \ 8*0a6a1f1dSLionel Sambuc // RUN: -ffreestanding -fsyntax-only -Werror \ 9*0a6a1f1dSLionel Sambuc // RUN: -isystem %S/Inputs/include %s 10*0a6a1f1dSLionel Sambuc 11*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-pc-win32 \ 12*0a6a1f1dSLionel Sambuc // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \ 13*0a6a1f1dSLionel Sambuc // RUN: -ffreestanding -fsyntax-only -Werror \ 14*0a6a1f1dSLionel Sambuc // RUN: -isystem %S/Inputs/include %s 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple thumbv7--windows \ 17*0a6a1f1dSLionel Sambuc // RUN: -fms-compatibility -fms-compatibility-version=17.00 \ 18*0a6a1f1dSLionel Sambuc // RUN: -ffreestanding -fsyntax-only -Werror \ 19*0a6a1f1dSLionel Sambuc // RUN: -isystem %S/Inputs/include %s 20f4a2713aSLionel Sambuc 21f4a2713aSLionel Sambuc // Intrin.h needs size_t, but -ffreestanding prevents us from getting it from 22f4a2713aSLionel Sambuc // stddef.h. Work around it with this typedef. 23f4a2713aSLionel Sambuc typedef __SIZE_TYPE__ size_t; 24f4a2713aSLionel Sambuc 25f4a2713aSLionel Sambuc #include <Intrin.h> 26f4a2713aSLionel Sambuc 27f4a2713aSLionel Sambuc // Use some C++ to make sure we closed the extern "C" brackets. 28f4a2713aSLionel Sambuc template <typename T> foo(T V)29f4a2713aSLionel Sambucvoid foo(T V) {} 30