2015-07-25 05:03:07 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
# RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
|
2016-03-11 00:58:34 +08:00
|
|
|
# CHECK: Undefined symbol: bar in {{.*}}
|
|
|
|
# CHECK: Undefined symbol: foo in {{.*}}
|
2015-07-25 05:03:07 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
2016-01-29 06:56:29 +08:00
|
|
|
.globl _start
|
2015-07-25 05:03:07 +08:00
|
|
|
_start:
|
|
|
|
call foo
|
2016-01-29 06:56:29 +08:00
|
|
|
call bar
|