Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Preprocessor / is_target_unknown_environment.c
blob9462ef442fecdc60a5492d77ecbe52d5f75e4f0c
1 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-macos12 -verify %s
3 // expected-no-diagnostics
5 #if !__is_target_environment(unknown)
6 #error "mismatching environment"
7 #endif
9 #if __is_target_environment(simulator) || __is_target_environment(SIMULATOR)
10 #error "mismatching environment"
11 #endif
13 #if __is_target_environment(invalidEnv)
14 #error "invalid environment must not be matched"
15 #endif