1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t1.o
3
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
8
9# ERROR: error: Option `-single_module' is deprecated
10# WARNING: warning: Option `-single_module' is deprecated
11
12.globl _main
13_main:
14