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"
9 #if __is_target_environment(simulator) || __is_target_environment(SIMULATOR)
10 #error "mismatching environment"
13 #if __is_target_environment(invalidEnv)
14 #error "invalid environment must not be matched"