Home | History | Annotate | Download | only in Headers
      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 -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
     10 
     11 // RUN: %clang_cc1 -triple thumbv7--windows \
     12 // RUN:     -ffreestanding -fsyntax-only -fms-compatibility -fmsc-version=1700 \
     13 // RUN:     -Werror \
     14 // RUN:     -isystem %S/Inputs/include %s
     15 
     16 // Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
     17 // stddef.h.  Work around it with this typedef.
     18 typedef __SIZE_TYPE__ size_t;
     19 
     20 #include <Intrin.h>
     21 
     22 // Use some C++ to make sure we closed the extern "C" brackets.
     23 template <typename T>
     24 void foo(T V) {}
     25