aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/weak-diff.s
blob: d270bbb73344d0307a54541ee7550d853e8ec686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t 2>&1 | FileCheck %s

// CHECK: error: Cannot represent a subtraction with a weak symbol

.weak f
.weak g
f:
    nop
g:
    nop

.quad g - f