brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · d1572b9 Raw
56 lines · plain
1## This test verifies that the tool emits a warning for object files2## without symbols.3 4# RUN: yaml2obj --docnum=1 %s -o %t-x86_64-empty.o5# RUN: yaml2obj --docnum=2 %s -o %t-armv7-empty.o6# RUN: echo 'target triple = "arm64-apple-ios8.0.0"' | llvm-as -o %t-empty.bc7# RUN: yaml2obj %S/Inputs/input1.yaml -o %t-non-empty.o8 9# RUN: llvm-libtool-darwin -static -o %t.lib %t-x86_64-empty.o 2>&1 | \10# RUN:   FileCheck --check-prefix=WARNING %s -DPREFIX=%basename_t.tmp11 12# WARNING: warning: '[[PREFIX]]-x86_64-empty.o': has no symbols for architecture x86_6413 14# RUN: not llvm-libtool-darwin -static -warnings_as_errors -o %t-error.lib %t-x86_64-empty.o 2>&1 | \15# RUN:   FileCheck --check-prefix=ERROR %s -DPREFIX=%basename_t.tmp16 17# ERROR: error: '[[PREFIX]]-x86_64-empty.o': has no symbols for architecture x86_6418 19# RUN: llvm-libtool-darwin -no_warning_for_no_symbols -static -o %t.lib \20# RUN:   %t-x86_64-empty.o 2>&1 | \21# RUN:   FileCheck %s --allow-empty --implicit-check-not='warning:'22 23# RUN: llvm-libtool-darwin -static -o %t.lib %t-non-empty.o 2>&1 | \24# RUN:   FileCheck %s --allow-empty --implicit-check-not='warning:'25 26# RUN: llvm-libtool-darwin -arch_only x86_64 -static -o %t.lib \27# RUN:   %t-non-empty.o %t-armv7-empty.o 2>&1 | \28# RUN:   FileCheck %s --allow-empty --implicit-check-not='warning:'29 30# RUN: llvm-libtool-darwin -static -o %t.lib %t-empty.bc 2>&1 | \31# RUN:   FileCheck %s --allow-empty --implicit-check-not='warning:'32 33## x86_6434--- !mach-o35FileHeader:36  magic:           0xFEEDFACF37  cputype:         0x100000738  cpusubtype:      0x339  filetype:        0x140  ncmds:           041  sizeofcmds:      042  flags:           0x200043  reserved:        0x044...45 46## armv747--- !mach-o48FileHeader:49  magic:           0xFEEDFACE50  cputype:         0x0000000C51  cpusubtype:      0x0000000952  filetype:        0x0000000153  ncmds:           054  sizeofcmds:      055  flags:           0x0000200056