]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335088 91177308-0d34-0410-b5e6-96231b3b80d8

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

diff --git a/test/Headers/x86-intrinsics-headers-clean.cpp b/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>