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+1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
5 .long foo - bar
6 .section .zed
7foo:
8 .section .bah
9bar:
10