1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 4 5# RUN: not %lld %t.o -o /dev/null 2>&1 | FileCheck %s 6# RUN: not %lld -demangle %t.o -o /dev/null 2>&1 | \ 7# RUN: FileCheck --check-prefix=DEMANGLE %s 8 9# CHECK: undefined symbol __Z1fv 10# DEMANGLE: undefined symbol f() 11 12.globl _main 13_main: 14 callq __Z1fv 15 ret 16