summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Headers/x86-intrinsics-headers-clean.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Headers/x86-intrinsics-headers-clean.cpp b/clang/test/Headers/x86-intrinsics-headers-clean.cpp
new file mode 100644
index 00000000000..c75f0910f5d
--- /dev/null
+++ b/clang/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 <x86intrin.h>
OpenPOWER on IntegriCloud