Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or errors.

llvm-svn: 335088
This commit is contained in:
Douglas Yung 2018-06-20 01:05:09 +00:00
parent b3ba1cc82a
commit eaa13eddaf
1 changed files with 14 additions and 0 deletions

View File

@ -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 <x86intrin.h>