1# REQUIRES: x86 2# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t.o 3# RUN: llvm-mc %p/Inputs/undefined-error.s -filetype=obj \ 4# RUN: -triple=x86_64-pc-linux -o %t2.o 5# RUN: ld.lld -shared %t2.o -o %t2.so 6# RUN: not ld.lld --allow-shlib-undefined %t2.so %t.o -o /dev/null 2>&1 | FileCheck %s 7 8# CHECK: undefined symbol: fmod 9# Check we're not emitting other diagnostics for this symbol. 10# CHECK-NOT: fmod 11 12.global main 13 14main: 15 callq fmod 16