1# RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s
2
3# CHECK: {{.*}}.s:[[# @LINE+1]]:30: error: expected linked-to symbol
4.section .link,"ao",@progbits
5
6# CHECK: {{.*}}.s:[[# @LINE+1]]:31: error: invalid linked-to symbol
7.section .link,"ao",@progbits,123
8
9# CHECK: {{.*}}.s:[[# @LINE+1]]:31: error: linked-to symbol is not in a section: foo
10.section .link,"ao",@progbits,foo
11
12# CHECK: {{.*}}.s:[[# @LINE+2]]:31: error: linked-to symbol is not in a section: bar
13bar = 42
14.section .link,"ao",@progbits,bar
15
16# CHECK: {{.*}}.s:[[# @LINE+2]]:31: error: linked-to symbol is not in a section: baz
17.quad baz
18.section .link,"ao",@progbits,baz
19