blob: d81afcbd22410efa81583767a61f1859d76aaf3c [file] [log] [blame]
Alex Lorenz2cfa11a2017-12-14 19:22:41 +00001// 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
4
5#if __is_target_arch(unknown)
6 #error "mismatching arch"
7#endif
8
9// Unknown vendor is allowed.
10#if !__is_target_vendor(unknown)
11 #error "mismatching vendor"
12#endif
13
14// Unknown OS is allowed.
15#if !__is_target_os(unknown)
16 #error "mismatching OS"
17#endif
18
19// Unknown environment is allowed.
20#if !__is_target_environment(unknown)
21 #error "mismatching environment"
22#endif