summaryrefslogtreecommitdiff
path: root/clang/test/Modules/compiler_builtins.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/compiler_builtins.m')
-rw-r--r--clang/test/Modules/compiler_builtins.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Modules/compiler_builtins.m b/clang/test/Modules/compiler_builtins.m
new file mode 100644
index 0000000..de6f57b
--- /dev/null
+++ b/clang/test/Modules/compiler_builtins.m
@@ -0,0 +1,10 @@
+// RUN: rm -rf %t
+// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t -D__need_wint_t %s -Xclang -verify
+
+#ifdef __SSE__
+@__experimental_modules_import _Builtin_intrinsics.intel.sse;
+#endif
+
+#ifdef __AVX2__
+@__experimental_modules_import _Builtin_intrinsics.intel.avx2;
+#endif