blob: 03f57a5955b9c2a07b6de44306a9fb4e2d2a2af0 [file] [log] [blame]
Chandler Carruthdea47a52013-09-20 21:12:25 +00001// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
2// RUN: -fms-extensions -fms-compatibility -fmsc-version=1700 \
Stephen Hines651f13c2014-04-23 16:59:28 -07003// RUN: -ffreestanding -fsyntax-only -Werror \
4// RUN: -isystem %S/Inputs/include %s
5
6// RUN: %clang_cc1 -triple x86_64-pc-win32 \
7// RUN: -fms-extensions -fms-compatibility -fmsc-version=1700 \
8// RUN: -ffreestanding -fsyntax-only -Werror \
9// RUN: -isystem %S/Inputs/include %s
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000010
Reid Klecknerd2cf0842013-09-19 01:54:40 +000011// Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
12// stddef.h. Work around it with this typedef.
13typedef __SIZE_TYPE__ size_t;
Reid Klecknerdce250b2013-09-19 00:32:11 +000014
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000015#include <Intrin.h>
16
Reid Klecknerd2cf0842013-09-19 01:54:40 +000017// Use some C++ to make sure we closed the extern "C" brackets.
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000018template <typename T>
19void foo(T V) {}