Chandler Carruth | dea47a5 | 2013-09-20 21:12:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame^] | 2 | // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \ |
| 3 | // RUN: -ffreestanding -fsyntax-only -Werror \ |
| 4 | // RUN: -isystem %S/Inputs/include %s |
| 5 | |
| 6 | // RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu broadwell \ |
| 7 | // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \ |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 8 | // RUN: -ffreestanding -fsyntax-only -Werror \ |
| 9 | // RUN: -isystem %S/Inputs/include %s |
| 10 | |
| 11 | // RUN: %clang_cc1 -triple x86_64-pc-win32 \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame^] | 12 | // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \ |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 13 | // RUN: -ffreestanding -fsyntax-only -Werror \ |
| 14 | // RUN: -isystem %S/Inputs/include %s |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 15 | |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 16 | // RUN: %clang_cc1 -triple thumbv7--windows \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame^] | 17 | // RUN: -fms-compatibility -fms-compatibility-version=17.00 \ |
| 18 | // RUN: -ffreestanding -fsyntax-only -Werror \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 19 | // RUN: -isystem %S/Inputs/include %s |
| 20 | |
Reid Kleckner | d2cf084 | 2013-09-19 01:54:40 +0000 | [diff] [blame] | 21 | // Intrin.h needs size_t, but -ffreestanding prevents us from getting it from |
| 22 | // stddef.h. Work around it with this typedef. |
| 23 | typedef __SIZE_TYPE__ size_t; |
Reid Kleckner | dce250b | 2013-09-19 00:32:11 +0000 | [diff] [blame] | 24 | |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 25 | #include <Intrin.h> |
| 26 | |
Reid Kleckner | d2cf084 | 2013-09-19 01:54:40 +0000 | [diff] [blame] | 27 | // Use some C++ to make sure we closed the extern "C" brackets. |
Reid Kleckner | 54fe9cd | 2013-09-19 00:19:53 +0000 | [diff] [blame] | 28 | template <typename T> |
| 29 | void foo(T V) {} |