Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / is_target_unknown.c
blobb61538fb39154f740c022f41c742a335eef64374
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"
7 #endif
9 // Unknown vendor is allowed.
10 #if !__is_target_vendor(unknown)
11 #error "mismatching vendor"
12 #endif
14 // Unknown OS is allowed.
15 #if !__is_target_os(unknown)
16 #error "mismatching OS"
17 #endif
19 // Unknown environment is allowed.
20 #if !__is_target_environment(unknown)
21 #error "mismatching environment"
22 #endif
24 // Unknown variant OS is not allowed.
25 #if __is_target_variant_os(unknown)
26 #error "mismatching OS"
27 #endif
29 // Unknown variant environment is not allowed.
30 #if __is_target_variant_environment(unknown)
31 #error "mismatching environment"
32 #endif