aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/ELF/bad-expr2.s
blob: 1ca8e90c76f9f0e999fd644cac61b301497ac6fe (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null \
// RUN: 2>&1 | FileCheck %s

// CHECK: [[@LINE+2]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: call foo - bar
        call foo - bar

        .section .foo
foo:
        .section .bar
bar: