[X86] Add 32-bit target test coverage to clean header tests
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 7 May 2022 14:23:29 +0000 (15:23 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 7 May 2022 14:23:46 +0000 (15:23 +0100)
clang/test/Headers/x86-intrinsics-headers-clean.cpp

index d0b86ba..b196148 100644 (file)
@@ -1,7 +1,12 @@
 // Make sure the intrinsic headers compile cleanly with no warnings or errors.
 
-// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -Wsystem-headers \
-// RUN:   -Wcast-qual -fsyntax-only -flax-vector-conversions=none -x c++ -verify %s
+// RUN: %clang_cc1 -ffreestanding -triple i386-unknown-unknown \
+// RUN:    -Werror -Wsystem-headers -Wcast-qual \
+// RUN:    -fsyntax-only -flax-vector-conversions=none -x c++ -verify %s
+
+// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown \
+// RUN:    -Werror -Wsystem-headers -Wcast-qual \
+// RUN:    -fsyntax-only -flax-vector-conversions=none -x c++ -verify %s
 
 // expected-no-diagnostics