Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-libtool-darwin/no-symbols-warning.test
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

56 lines
1.9 KiB
Plaintext

## This test verifies that the tool emits a warning for object files
## without symbols.
# RUN: yaml2obj --docnum=1 %s -o %t-x86_64-empty.o
# RUN: yaml2obj --docnum=2 %s -o %t-armv7-empty.o
# RUN: echo 'target triple = "arm64-apple-ios8.0.0"' | llvm-as -o %t-empty.bc
# RUN: yaml2obj %S/Inputs/input1.yaml -o %t-non-empty.o
# RUN: llvm-libtool-darwin -static -o %t.lib %t-x86_64-empty.o 2>&1 | \
# RUN: FileCheck --check-prefix=WARNING %s -DPREFIX=%basename_t.tmp
# WARNING: warning: '[[PREFIX]]-x86_64-empty.o': has no symbols for architecture x86_64
# RUN: not llvm-libtool-darwin -static -warnings_as_errors -o %t-error.lib %t-x86_64-empty.o 2>&1 | \
# RUN: FileCheck --check-prefix=ERROR %s -DPREFIX=%basename_t.tmp
# ERROR: error: '[[PREFIX]]-x86_64-empty.o': has no symbols for architecture x86_64
# RUN: llvm-libtool-darwin -no_warning_for_no_symbols -static -o %t.lib \
# RUN: %t-x86_64-empty.o 2>&1 | \
# RUN: FileCheck %s --allow-empty --implicit-check-not='warning:'
# RUN: llvm-libtool-darwin -static -o %t.lib %t-non-empty.o 2>&1 | \
# RUN: FileCheck %s --allow-empty --implicit-check-not='warning:'
# RUN: llvm-libtool-darwin -arch_only x86_64 -static -o %t.lib \
# RUN: %t-non-empty.o %t-armv7-empty.o 2>&1 | \
# RUN: FileCheck %s --allow-empty --implicit-check-not='warning:'
# RUN: llvm-libtool-darwin -static -o %t.lib %t-empty.bc 2>&1 | \
# RUN: FileCheck %s --allow-empty --implicit-check-not='warning:'
## x86_64
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x1000007
cpusubtype: 0x3
filetype: 0x1
ncmds: 0
sizeofcmds: 0
flags: 0x2000
reserved: 0x0
...
## armv7
--- !mach-o
FileHeader:
magic: 0xFEEDFACE
cputype: 0x0000000C
cpusubtype: 0x00000009
filetype: 0x00000001
ncmds: 0
sizeofcmds: 0
flags: 0x00002000