1 ## This test verifies that the tool emits a warning for object files
4 # RUN: yaml2obj --docnum=1 %s -o %t-x86_64-empty.o
5 # RUN: yaml2obj --docnum=2 %s -o %t-armv7-empty.o
6 # RUN: echo 'target triple = "arm64-apple-ios8.0.0"' | llvm-as -o %t-empty.bc
7 # RUN: yaml2obj %S/Inputs/input1.yaml -o %t-non-empty.o
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.tmp
12 # WARNING: warning: '[[PREFIX]]-x86_64-empty.o': has no symbols for architecture x86_64
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.tmp
17 # ERROR: error: '[[PREFIX]]-x86_64-empty.o': has no symbols for architecture x86_64
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:'
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:'
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:'
30 # RUN: llvm-libtool-darwin -static -o %t.lib %t-empty.bc 2>&1 | \
31 # RUN: FileCheck %s --allow-empty --implicit-check-not='warning:'
51 cpusubtype: 0x00000009