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
57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
; RUN: rm -rf %t
|
|
; RUN: split-file %s %t
|
|
; RUN: mkdir -p %t/Frameworks/
|
|
; RUN: cp -r %S/Inputs/Zippered/Zippered.framework %t/Frameworks/
|
|
; RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json
|
|
; RUN: yaml2obj %S/Inputs/Zippered/Zippered.yaml -o %t/Frameworks/Zippered.framework/Zippered
|
|
|
|
; RUN: clang-installapi \
|
|
; RUN: --target=x86_64-apple-macos13 -darwin-target-variant x86_64-apple-ios16-macabi \
|
|
; RUN: -install_name /System/Library/Frameworks/Zippered.framework/Versions/A/Zippered \
|
|
; RUN: -current_version 1 -compatibility_version 1 %t/inputs.json \
|
|
; RUN: --verify-against=%t/Frameworks/Zippered.framework/Zippered \
|
|
; RUN: -isysroot %S/Inputs/MacOSX13.0.sdk -F%t/Frameworks \
|
|
; RUN: --verify-mode=Pedantic -o %t/Zippered.tbd \
|
|
; RUN: --extra-private-header=%t/Extra.h 2>&1 | FileCheck -allow-empty %s \
|
|
; RUN: --implicit-check-not warning: --implicit-check-not error:
|
|
; RUN: llvm-readtapi -compare %t/Zippered.tbd %S/Inputs/Zippered/Zippered.tbd
|
|
|
|
// Flag extra symbols exposed by macro definition.
|
|
; RUN: not clang-installapi \
|
|
; RUN: --target=x86_64-apple-macos13 -darwin-target-variant x86_64-apple-ios16-macabi \
|
|
; RUN: -install_name /System/Library/Frameworks/Zippered.framework/Versions/A/Zippered \
|
|
; RUN: -current_version 1 -compatibility_version 1 %t/inputs.json \
|
|
; RUN: -isysroot %S/Inputs/MacOSX13.0.sdk -F%t/Frameworks \
|
|
; RUN: --verify-mode=Pedantic -o %t/Zippered.tbd -v \
|
|
; RUN: --verify-against=%t/Frameworks/Zippered.framework/Zippered \
|
|
; RUN: --extra-private-header=%t/Extra.h -XExtra -DExtra 2>&1 | FileCheck %s --check-prefix=MACRO_DEF
|
|
|
|
; MACRO_DEF-COUNT-2: "-D" "Extra"
|
|
; MACRO_DEF: violations found for x86_64-apple-macos13
|
|
; MACRO_DEF: Extra.h:5:12: error: declaration has external linkage, but dynamic library doesn't have symbol 'foo$bar'
|
|
; MACRO_DEF-COUNT-2: "-D" "Extra"
|
|
; MACRO_DEF-NOT: violations found for x86_64-apple-ios16-macabi
|
|
|
|
;--- Extra.h
|
|
#define __STRING(x) #x
|
|
|
|
#if defined(Extra)
|
|
#define MACRO_DEF "$bar"
|
|
extern int foo() __asm("_" __STRING(foo) MACRO_DEF) __attribute__((availability(ios, unavailable)));
|
|
#endif
|
|
|
|
;--- inputs.json.in
|
|
{
|
|
"headers": [
|
|
{
|
|
"path" : "DSTROOT/Frameworks/Zippered.framework/PrivateHeaders/Zippered_Private.h",
|
|
"type" : "private"
|
|
},
|
|
{
|
|
"path" : "DSTROOT/Frameworks/Zippered.framework/Headers/Zippered.h",
|
|
"type" : "public"
|
|
}
|
|
],
|
|
"version": "3"
|
|
}
|