Files
clang-p2996/lld/test/MachO/fatal-warnings.s
Nico Weber 305852686b [mac/lld] Run tests with -fatal_warnings by default
This helps us catch cases where we add support for a flag but forget to
remove HelpHidden from Options.td.

More explicit alternative to D92455

Differential Revision: https://reviews.llvm.org/D92575
2020-12-03 21:23:47 -05:00

14 lines
476 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t1.o
# RUN: %no_fatal_warnings_lld %t1.o -o /dev/null -single_module 2>&1 \
# RUN: | FileCheck -check-prefix=WARNING %s
# RUN: not %no_fatal_warnings_lld %t1.o -fatal_warnings -o /dev/null \
# RUN: -single_module 2>&1 | FileCheck -check-prefix=ERROR %s
# ERROR: error: Option `-single_module' is deprecated
# WARNING: warning: Option `-single_module' is deprecated
.globl _main
_main: