Some subprojects like compiler-rt define the `darwin` feature in their lit config, but clang does not do that, so we need to use the global `system-darwin` here instead. Differential Revision: https://reviews.llvm.org/D111267
8 lines
215 B
C
8 lines
215 B
C
// REQUIRES: system-darwin
|
|
|
|
// Always error about undefined 'TARGET_OS_*' macros on Darwin.
|
|
// RUN: %clang -### %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK-DAG: "-Wundef-prefix=TARGET_OS_"
|
|
// CHECK-DAG: "-Werror=undef-prefix"
|