From 382ede4544a8902f38cea5680f1625ec3ac684dc Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 8 Mar 2019 01:15:18 +0000 Subject: [PATCH] [X86] Make x86-intrinsics-headers-clean.cpp stricter. Remove the -Wno-ignored-attributes. Add -fno-lax-vector-conversions Also use -ffreestanding instead of defining _MM_MALLOC_H. llvm-svn: 355659 --- clang/test/Headers/x86-intrinsics-headers-clean.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/clang/test/Headers/x86-intrinsics-headers-clean.cpp b/clang/test/Headers/x86-intrinsics-headers-clean.cpp index c75f091..0a06790 100644 --- a/clang/test/Headers/x86-intrinsics-headers-clean.cpp +++ b/clang/test/Headers/x86-intrinsics-headers-clean.cpp @@ -1,14 +1,8 @@ // 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 -- 2.7.4