2013-09-21 05:12:25 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
|
2014-07-16 11:13:50 +08:00
|
|
|
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
|
2014-01-29 07:01:59 +08:00
|
|
|
// RUN: -ffreestanding -fsyntax-only -Werror \
|
|
|
|
// RUN: -isystem %S/Inputs/include %s
|
2013-09-19 08:19:53 +08:00
|
|
|
|
2014-11-03 12:19:58 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu broadwell \
|
|
|
|
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
|
|
|
|
// RUN: -ffreestanding -fsyntax-only -Werror \
|
|
|
|
// RUN: -isystem %S/Inputs/include %s
|
|
|
|
|
2014-03-13 05:09:03 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-win32 \
|
2014-07-16 11:13:50 +08:00
|
|
|
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
|
2014-03-13 05:09:03 +08:00
|
|
|
// RUN: -ffreestanding -fsyntax-only -Werror \
|
|
|
|
// RUN: -isystem %S/Inputs/include %s
|
|
|
|
|
2014-07-09 04:21:29 +08:00
|
|
|
// RUN: %clang_cc1 -triple thumbv7--windows \
|
2014-07-16 11:13:50 +08:00
|
|
|
// RUN: -fms-compatibility -fms-compatibility-version=17.00 \
|
|
|
|
// RUN: -ffreestanding -fsyntax-only -Werror \
|
2014-07-09 04:21:29 +08:00
|
|
|
// RUN: -isystem %S/Inputs/include %s
|
|
|
|
|
2013-09-19 09:54:40 +08:00
|
|
|
// 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;
|
2013-09-19 08:32:11 +08:00
|
|
|
|
2013-09-19 08:19:53 +08:00
|
|
|
#include <Intrin.h>
|
|
|
|
|
2013-09-19 09:54:40 +08:00
|
|
|
// Use some C++ to make sure we closed the extern "C" brackets.
|
2013-09-19 08:19:53 +08:00
|
|
|
template <typename T>
|
|
|
|
void foo(T V) {}
|