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

// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
        .long foo - bar
        .section .zed
foo:
        .section .bah
bar:
OpenPOWER on IntegriCloud