Implement unique sections with an unique ID.
[oota-llvm.git] / test / MC / ELF / weak-diff.s
1 // RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t 2>&1 | FileCheck %s
2
3 // CHECK: error: Cannot represent a subtraction with a weak symbol
4
5 .weak f
6 .weak g
7 f:
8     nop
9 g:
10     nop
11
12 .quad g - f