Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or...
authorDouglas Yung <douglas.yung@sony.com>
Wed, 20 Jun 2018 01:05:09 +0000 (01:05 +0000)
committerDouglas Yung <douglas.yung@sony.com>
Wed, 20 Jun 2018 01:05:09 +0000 (01:05 +0000)
llvm-svn: 335088

clang/test/Headers/x86-intrinsics-headers-clean.cpp [new file with mode: 0644]

diff --git a/clang/test/Headers/x86-intrinsics-headers-clean.cpp b/clang/test/Headers/x86-intrinsics-headers-clean.cpp
new file mode 100644 (file)
index 0000000..c75f091
--- /dev/null
@@ -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>