From: Douglas Yung Date: Wed, 20 Jun 2018 01:05:09 +0000 (+0000) Subject: Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2714dd09cfcf43203ed1165b36270dff363a3bab;p=clang Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or errors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Headers/x86-intrinsics-headers-clean.cpp b/test/Headers/x86-intrinsics-headers-clean.cpp new file mode 100644 index 0000000000..c75f0910f5 --- /dev/null +++ b/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