1# REQUIRES: x86 2 3## Check that we correctly parse these flags, even though they are 4## unimplemented. ## We may still emit warnings or errors for some of the 5## unimplemented ones (but those ## errors are squelched because of the 6## `--version` flag.) 7# RUN: %lld --version \ 8# RUN: -dynamic \ 9# RUN: -lto_library /lib/foo \ 10# RUN: -macosx_version_min 0 \ 11# RUN: -no_dtrace_dof \ 12# RUN: -dependency_info /path/to/dependency_info.dat \ 13# RUN: -lto_library ../lib/libLTO.dylib \ 14# RUN: -mllvm -time-passes \ 15# RUN: -objc_abi_version 2 \ 16# RUN: -ios_simulator_version_min 9.0.0 \ 17# RUN: -sdk_version 13.2 18# RUN: not %lld -v --not-an-ignored-argument 2>&1 | FileCheck %s 19# CHECK: error: unknown argument '--not-an-ignored-argument' 20 21## Check that we don't emit any warnings nor errors for these unimplemented flags. 22# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 23# RUN: %lld %t.o -o /dev/null -objc_abi_version 2 -debug_variant -no_warn_duplicate_libraries 24 25.globl _main 26_main: 27 ret 28