1// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
2// RUN: FileCheck --input-file=%t %s
3
4
5        .data
6x:
7// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: symbol '__executable_start' can not be undefined in a subtraction expression
8        .quad   x-__executable_start
9
10// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: unsupported subtraction of qualified symbol
11        .long bar - foo@got
12foo:
13