1 // Regression test. Previously the output returned the full OS name
2 // (e.g. `darwin20.3.0`) instead of just `darwin`.
4 // RUN: %clang -print-runtime-dir --target=x86_64-apple-darwin20.3.0 \
5 // RUN: -resource-dir=%S/Inputs/resource_dir \
6 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
8 // RUN: %clang -print-runtime-dir --target=x86_64-apple-macosx11.0.0 \
9 // RUN: -resource-dir=%S/Inputs/resource_dir \
10 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
12 // RUN: %clang -print-runtime-dir --target=arm64-apple-ios14.0.0 \
13 // RUN: -resource-dir=%S/Inputs/resource_dir \
14 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
16 // RUN: %clang -print-runtime-dir --target=arm64-apple-tvos14.0.0 \
17 // RUN: -resource-dir=%S/Inputs/resource_dir \
18 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
20 // RUN: %clang -print-runtime-dir --target=arm64-apple-watchos5.0.0 \
21 // RUN: -resource-dir=%S/Inputs/resource_dir \
22 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
24 // PRINT-RUNTIME-DIR: lib{{/|\\}}darwin{{$}}