// RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-macos -DMAC -verify %s
// RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-ios13.1 -DIOS -verify %s
// RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-ios13.1-macabi -DCATALYST -verify %s
// RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-macos12 -darwin-target-variant-triple arm64-apple-ios-macabi -DZIPPERED -verify %s
// expected-no-diagnostics
// Target variant is a darwin.
// Target variant is not macOS...
// ...but iOS.
// Zippered builds also set the target variant environment to macabi.
// At the moment, only zippered builds set __is_target_variant_os(ios),
// so checking __is_target_variant_environment() is currently redundant
// with checking the former.
// In non-zippered builds, even for catalyst, no target variant is set.
// So these are all false.
// The target environment in zippered builds is _not_ macabi.
// The target environment is macabi only in catalyst builds.