summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2018-06-20 01:05:09 +0000
committerDouglas Yung <douglas.yung@sony.com>2018-06-20 01:05:09 +0000
commiteaa13eddafe47794ed793b7d1b231d4131b31f62 (patch)
treeb640c5509d713df18306e5a4344ace5efd50e56e
parentb3ba1cc82a23f91500f91e091659d4aad76f54a8 (diff)
downloadbcm5719-llvm-eaa13eddafe47794ed793b7d1b231d4131b31f62.tar.gz
bcm5719-llvm-eaa13eddafe47794ed793b7d1b231d4131b31f62.zip
Add a test to verify the x86 intrinsic headers compile cleanly with no warnings or errors.
llvm-svn: 335088
-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