Debian Codegraph @

clang/test/Driver/darwin-invalid-os-versions.c

raw
1 /// Verify invalid OSVersions are diagnosed.
2
3 // RUN: not %clang -target arm64-apple-ios20 -c %s 2>&1 | FileCheck %s --check-prefix=IOS
4 // IOS: error: invalid version number in '-target arm64-apple-ios20'
5
6 // RUN: not %clang -target arm64-apple-watchos20 -c %s 2>&1 | FileCheck %s --check-prefix=WATCHOS
7 // WATCHOS: error: invalid version number in '-target arm64-apple-watchos20'
8
9 // RUN: not %clang -target arm64-apple-macosx19 -c %s 2>&1 | FileCheck %s --check-prefix=MAC
10 // MAC: error: invalid version number in '-target arm64-apple-macosx19'
11
12 // RUN: not %clang -target arm64-apple-ios22-macabi -c %s 2>&1 | FileCheck %s --check-prefix=IOSMAC
13 // IOSMAC: error: invalid version number in '-target arm64-apple-ios22-macabi'
14
15 // RUN: not %clang -target arm64-apple-macosx16 -darwin-target-variant arm64-apple-ios22-macabi -c %s 2>&1 | FileCheck %s --check-prefix=ZIPPERED
16 // ZIPPERED: error: invalid version number in 'arm64-apple-ios22-macabi'
17
18 // RUN: not %clang -target arm64-apple-visionos5 -c %s 2>&1 | FileCheck %s --check-prefix=VISION
19 // VISION: error: invalid version number in '-target arm64-apple-visionos5'
20
21 // RUN: not %clang -target arm64-apple-tvos21 -c %s 2>&1 | FileCheck %s --check-prefix=TV
22 // TV: error: invalid version number in '-target arm64-apple-tvos21'