From eaa13eddafe47794ed793b7d1b231d4131b31f62 Mon Sep 17 00:00:00 2001 From: Douglas Yung Date: Wed, 20 Jun 2018 01:05:09 +0000 Subject: [PATCH] Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or errors. llvm-svn: 335088 --- .../test/Headers/x86-intrinsics-headers-clean.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 clang/test/Headers/x86-intrinsics-headers-clean.cpp diff --git a/clang/test/Headers/x86-intrinsics-headers-clean.cpp b/clang/test/Headers/x86-intrinsics-headers-clean.cpp new file mode 100644 index 000000000000..c75f0910f5da --- /dev/null +++ b/clang/test/Headers/x86-intrinsics-headers-clean.cpp @@ -0,0 +1,14 @@ +// Make sure the intrinsic headers compile cleanly with no warnings or errors. + +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wsystem-headers \ +// RUN: -fsyntax-only -x c++ -Wno-ignored-attributes -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wsystem-headers \ +// RUN: -fsyntax-only -x c++ -Wno-ignored-attributes -target-feature +f16c \ +// RUN: -verify %s + +// expected-no-diagnostics + +// Dont' include mm_malloc.h. It's system specific. +#define __MM_MALLOC_H + +#include