blob: d81afcbd22410efa81583767a61f1859d76aaf3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// RUN: %clang_cc1 -fsyntax-only -triple i686-unknown-unknown -verify %s
// RUN: %clang_cc1 -fsyntax-only -triple i686-- -verify %s
// expected-no-diagnostics
#if __is_target_arch(unknown)
#error "mismatching arch"
#endif
// Unknown vendor is allowed.
#if !__is_target_vendor(unknown)
#error "mismatching vendor"
#endif
// Unknown OS is allowed.
#if !__is_target_os(unknown)
#error "mismatching OS"
#endif
// Unknown environment is allowed.
#if !__is_target_environment(unknown)
#error "mismatching environment"
#endif
|