1// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null \
2// RUN: 2>&1 | FileCheck %s
3
4// CHECK: [[@LINE+2]]:{{[0-9]+}}: error: Cannot represent a difference across sections
5// CHECK-NEXT: call foo - bar
6 call foo - bar
7
8 .section .foo
9foo:
10 .section .bar
11bar:
12