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

Douglas Yung via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 19 18:05:10 PDT 2018


Author: dyung
Date: Tue Jun 19 18:05:09 2018
New Revision: 335088

URL: http://llvm.org/viewvc/llvm-project?rev=335088&view=rev
Log:
Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or errors.


Added:
    cfe/trunk/test/Headers/x86-intrinsics-headers-clean.cpp

Added: cfe/trunk/test/Headers/x86-intrinsics-headers-clean.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/x86-intrinsics-headers-clean.cpp?rev=335088&view=auto
==============================================================================
--- cfe/trunk/test/Headers/x86-intrinsics-headers-clean.cpp (added)
+++ cfe/trunk/test/Headers/x86-intrinsics-headers-clean.cpp Tue Jun 19 18:05:09 2018
@@ -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>




More information about the cfe-commits mailing list