xref: /llvm-project/clang/test/Headers/x86-intrinsics-headers-clean.cpp (revision d3a4033d6ee1d017e216ff7caeeeb5ca2e18a783)
1 // Make sure the intrinsic headers compile cleanly with no warnings or errors.
2 
3 // RUN: %clang_cc1 -ffreestanding -triple i386-unknown-unknown \
4 // RUN:    -Wextra -Werror -Wsystem-headers -Wsign-conversion -Wcast-qual -Wdocumentation -Wdocumentation-pedantic -Wdocumentation-unknown-command \
5 // RUN:    -fsyntax-only -fretain-comments-from-system-headers -flax-vector-conversions=none -x c++ -verify %s
6 
7 // RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown \
8 // RUN:    -Wextra -Werror -Wsystem-headers -Wsign-conversion -Wcast-qual -Wdocumentation -Wdocumentation-pedantic -Wdocumentation-unknown-command \
9 // RUN:    -fsyntax-only -fretain-comments-from-system-headers -flax-vector-conversions=none -x c++ -verify %s
10 
11 // expected-no-diagnostics
12 
13 #include <x86intrin.h>
14