Chandler Carruth | dea47a5 | 2013-09-20 21:12:25 +0000 | [diff] [blame^] | 1 | // 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 Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 4 | |
Reid Kleckner | d2cf084 | 2013-09-19 01:54:40 +0000 | [diff] [blame] | 5 | // Intrin.h needs size_t, but -ffreestanding prevents us from getting it from |
| 6 | // stddef.h. Work around it with this typedef. |
| 7 | typedef __SIZE_TYPE__ size_t; |
Reid Kleckner | dce250b | 2013-09-19 00:32:11 +0000 | [diff] [blame] | 8 | |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 9 | #include <Intrin.h> |
| 10 | |
Reid Kleckner | d2cf084 | 2013-09-19 01:54:40 +0000 | [diff] [blame] | 11 | // Use some C++ to make sure we closed the extern "C" brackets. |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 12 | template <typename T> |
| 13 | void foo(T V) {} |