blob: a83225e37f8eb2135634e499f4f65840859afb1a [file] [log] [blame]
Chandler Carruthdea47a52013-09-20 21:12:25 +00001// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
Stephen Hines176edba2014-12-01 14:53:08 -08002// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
3// RUN: -ffreestanding -fsyntax-only -Werror \
4// RUN: -isystem %S/Inputs/include %s
5
6// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu broadwell \
7// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
Stephen Hines651f13c2014-04-23 16:59:28 -07008// RUN: -ffreestanding -fsyntax-only -Werror \
9// RUN: -isystem %S/Inputs/include %s
10
11// RUN: %clang_cc1 -triple x86_64-pc-win32 \
Stephen Hines176edba2014-12-01 14:53:08 -080012// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
Stephen Hines651f13c2014-04-23 16:59:28 -070013// RUN: -ffreestanding -fsyntax-only -Werror \
14// RUN: -isystem %S/Inputs/include %s
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000015
Stephen Hinesc568f1e2014-07-21 00:47:37 -070016// RUN: %clang_cc1 -triple thumbv7--windows \
Stephen Hines176edba2014-12-01 14:53:08 -080017// RUN: -fms-compatibility -fms-compatibility-version=17.00 \
18// RUN: -ffreestanding -fsyntax-only -Werror \
Stephen Hinesc568f1e2014-07-21 00:47:37 -070019// RUN: -isystem %S/Inputs/include %s
20
Reid Klecknerd2cf0842013-09-19 01:54:40 +000021// Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
22// stddef.h. Work around it with this typedef.
23typedef __SIZE_TYPE__ size_t;
Reid Klecknerdce250b2013-09-19 00:32:11 +000024
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000025#include <Intrin.h>
26
Reid Klecknerd2cf0842013-09-19 01:54:40 +000027// Use some C++ to make sure we closed the extern "C" brackets.
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000028template <typename T>
29void foo(T V) {}