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 \ |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 3 | // 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 Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 10 | |
Reid Kleckner | d2cf084 | 2013-09-19 01:54:40 +0000 | [diff] [blame] | 11 | // Intrin.h needs size_t, but -ffreestanding prevents us from getting it from |
| 12 | // stddef.h. Work around it with this typedef. |
| 13 | typedef __SIZE_TYPE__ size_t; |
Reid Kleckner | dce250b | 2013-09-19 00:32:11 +0000 | [diff] [blame] | 14 | |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 15 | #include <Intrin.h> |
| 16 | |
Reid Kleckner | d2cf084 | 2013-09-19 01:54:40 +0000 | [diff] [blame] | 17 | // Use some C++ to make sure we closed the extern "C" brackets. |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 18 | template <typename T> |
| 19 | void foo(T V) {} |