blob: 58ad5a2449cab98cb47e24251fdfaee9418dab57 [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 \
3// RUN: -ffreestanding -fsyntax-only %s
Reid Kleckner54fe9cd2013-09-19 00:19:53 +00004
Reid Klecknerd2cf0842013-09-19 01:54:40 +00005// Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
6// stddef.h. Work around it with this typedef.
7typedef __SIZE_TYPE__ size_t;
Reid Klecknerdce250b2013-09-19 00:32:11 +00008
Reid Kleckner54fe9cd2013-09-19 00:19:53 +00009#include <Intrin.h>
10
Reid Klecknerd2cf0842013-09-19 01:54:40 +000011// Use some C++ to make sure we closed the extern "C" brackets.
Reid Kleckner54fe9cd2013-09-19 00:19:53 +000012template <typename T>
13void foo(T V) {}