// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null \
// RUN: 2>&1 | FileCheck %s

// CHECK: No relocation available to represent this relative expression
// CHECK: call foo - bar


        call foo - bar
        .section .foo
foo:
        .section .bar
bar:

// 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: No relocation available to represent this relative expression
// CHECK-NEXT: call foo - bar
        call foo - bar

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

Make this test a bit more strict. NFC.
Make this test a bit more strict. NFC.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@305855 91177308-0d34-0410-b5e6-96231b3b80d8
