2017-08-14 18:17:30 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
|
|
# RUN: ld.lld %t -plugin-opt=/foo/bar -plugin-opt=-fresolution=zed \
|
2017-08-16 16:21:04 +08:00
|
|
|
# RUN: -plugin-opt=-pass-through=-lgcc -plugin-opt=-function-sections \
|
2018-02-07 16:50:36 +08:00
|
|
|
# RUN: -plugin-opt=-data-sections -plugin-opt=thinlto -o /dev/null
|
2017-08-16 16:21:04 +08:00
|
|
|
|
2018-03-31 01:22:44 +08:00
|
|
|
# RUN: not ld.lld %t -plugin-opt=-abc -plugin-opt=-xyz 2>&1 | FileCheck %s
|
2018-08-23 07:52:13 +08:00
|
|
|
# CHECK: error: --plugin-opt: ld.lld: Unknown command line argument '-abc'
|
|
|
|
# CHECK: error: --plugin-opt: ld.lld: Unknown command line argument '-xyz'
|