Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / fatal-warnings.s
blob0fedb9431438d4176339e883d24353db6ca863df
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t1.o
4 # RUN: %no-fatal-warnings-lld %t1.o -o /dev/null -single_module 2>&1 \
5 # RUN: | FileCheck -check-prefix=WARNING %s
6 # RUN: not %no-fatal-warnings-lld %t1.o -fatal_warnings -o /dev/null \
7 # RUN: -single_module 2>&1 | FileCheck -check-prefix=ERROR %s
9 # RUN: %no-fatal-warnings-lld %t1.o -w -o /dev/null -single_module 2>&1 \
10 # RUN: | count 0
11 # RUN: not %no-fatal-warnings-lld %t1.o -fatal_warnings -w -o /dev/null \
12 # RUN: -single_module 2>&1 \
13 # RUN: | FileCheck --check-prefix=ERROR %s
15 # ERROR: error: Option `-single_module' is deprecated
16 # WARNING: warning: Option `-single_module' is deprecated
18 .globl _main
19 _main: