CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
59 lines
2.4 KiB
C
59 lines
2.4 KiB
C
// RUN: %clang_cc1 "-triple" "x86_64-apple-ios13.1-macabi" -isysroot %S/Inputs/MacOSX11.0.sdk -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 "-triple" "x86_64-apple-ios14.2-macabi" -isysroot %S/Inputs/MacOSX11.0.sdk -DIOS14 -fsyntax-only -verify %s
|
|
|
|
void f0(void) __attribute__((availability(macOS, introduced = 10.11)));
|
|
void f1(void) __attribute__((availability(macOS, introduced = 10.15)));
|
|
void f2(void) __attribute__(( // expected-note {{'f2' has been explicitly marked deprecated here}}
|
|
availability(macOS, introduced = 10.11,
|
|
deprecated = 10.12)));
|
|
void f3(void)
|
|
__attribute__((availability(macOS, introduced = 10.11, deprecated = 10.14)))
|
|
__attribute__((availability(iOS, introduced = 11.0)));
|
|
|
|
void f4(void)
|
|
__attribute__((availability(macOS, introduced = 10, deprecated = 100000)));
|
|
|
|
void fAvail(void) __attribute__((availability(macOS, unavailable)));
|
|
|
|
void f16(void) __attribute__((availability(macOS, introduced = 11.0)));
|
|
#ifndef IOS14
|
|
// expected-note@-2 {{here}}
|
|
#endif
|
|
|
|
void fObs(void) __attribute__((availability(macOS, introduced = 10.11, obsoleted = 10.15))); // expected-note {{'fObs' has been explicitly marked unavailable here}}
|
|
|
|
void fAPItoDepr(void) __attribute__((availability(macOS, introduced = 10.11, deprecated = 100000)));
|
|
|
|
void dontRemapFutureVers(void) __attribute__((availability(macOS, introduced = 30)));
|
|
|
|
void usage(void) {
|
|
f0();
|
|
f1();
|
|
f2(); // expected-warning {{'f2' is deprecated: first deprecated in macCatalyst 13.1}}
|
|
f3();
|
|
f4();
|
|
fAvail();
|
|
f16();
|
|
#ifndef IOS14
|
|
// expected-warning@-2 {{'f16' is only available on macCatalyst 14.2 or newer}} expected-note@-2 {{enclose}}
|
|
#endif
|
|
fObs(); // expected-error {{'fObs' is unavailable: obsoleted in macCatalyst 13.1}}
|
|
fAPItoDepr();
|
|
dontRemapFutureVers();
|
|
}
|
|
|
|
#ifdef IOS14
|
|
|
|
void f15_4(void) __attribute__((availability(macOS, introduced = 10.15, deprecated = 10.15.4))); // expected-note {{here}}
|
|
void f15_3(void) __attribute__((availability(macOS, introduced = 10.15, deprecated = 10.15.3))); // expected-note {{here}}
|
|
void f15_2(void) __attribute__((availability(macOS, introduced = 10.15, deprecated = 10.15.2))); // expected-note {{here}}
|
|
|
|
void usage16(void) {
|
|
f15_2(); // expected-warning {{'f15_2' is deprecated: first deprecated in macCatalyst 13.3}}
|
|
f15_3(); // expected-warning {{'f15_3' is deprecated: first deprecated in macCatalyst 13.3.1}}
|
|
f15_4(); // expected-warning {{'f15_4' is deprecated: first deprecated in macCatalyst 13.4}}
|
|
f16();
|
|
}
|
|
|
|
#endif
|