ms-intrin.cpp 1.2 KB

1234567891011121314151617181920212223242526272829
  1. // RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
  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. // RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu broadwell \
  6. // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
  7. // RUN: -ffreestanding -fsyntax-only -Werror \
  8. // RUN: -isystem %S/Inputs/include %s
  9. // RUN: %clang_cc1 -triple x86_64-pc-win32 \
  10. // RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
  11. // RUN: -ffreestanding -fsyntax-only -Werror \
  12. // RUN: -isystem %S/Inputs/include %s
  13. // RUN: %clang_cc1 -triple thumbv7--windows \
  14. // RUN: -fms-compatibility -fms-compatibility-version=17.00 \
  15. // RUN: -ffreestanding -fsyntax-only -Werror \
  16. // RUN: -isystem %S/Inputs/include %s
  17. // Intrin.h needs size_t, but -ffreestanding prevents us from getting it from
  18. // stddef.h. Work around it with this typedef.
  19. typedef __SIZE_TYPE__ size_t;
  20. #include <Intrin.h>
  21. // Use some C++ to make sure we closed the extern "C" brackets.
  22. template <typename T>
  23. void foo(T V) {}