1 // RUN: %clang_cc1 -fsyntax-only -triple i686-unknown-unknown -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -triple i686-- -verify %s
3 // expected-no-diagnostics
5 #if __is_target_arch(unknown)
6 #error "mismatching arch"
9 // Unknown vendor is allowed.
10 #if !__is_target_vendor(unknown)
11 #error "mismatching vendor"
14 // Unknown OS is allowed.
15 #if !__is_target_os(unknown)
16 #error "mismatching OS"
19 // Unknown environment is allowed.
20 #if !__is_target_environment(unknown)
21 #error "mismatching environment"
24 // Unknown variant OS is not allowed.
25 #if __is_target_variant_os(unknown)
26 #error "mismatching OS"
29 // Unknown variant environment is not allowed.
30 #if __is_target_variant_environment(unknown)
31 #error "mismatching environment"