Remove the -Wno-ignored-attributes.
Add -fno-lax-vector-conversions
Also use -ffreestanding instead of defining _MM_MALLOC_H.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355659
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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
+// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -Wsystem-headers \
+// RUN: -fsyntax-only -fno-lax-vector-conversions -x c++ -verify %s
// expected-no-diagnostics
-// Dont' include mm_malloc.h. It's system specific.
-#define __MM_MALLOC_H
-
#include <x86intrin.h>