2013-09-21 05:12:25 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
|
|
|
|
// RUN: -fms-extensions -fms-compatibility -fmsc-version=1700 \
|
2014-01-17 08:04:43 +08:00
|
|
|
// RUN: -ffreestanding -fsyntax-only %s
|
2013-09-19 08:19:53 +08:00
|
|
|
|
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) {}
|