xref: /llvm-project/llvm/test/MC/ELF/dwo-restrict-relocs.s (revision f50ad6c311effee3bb70c3555fb6f6b0d59465b8)
1// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null -split-dwarf-file %t2 2>&1 | FileCheck %s
2
3// CHECK: error: A relocation may not refer to a dwo section
4.quad .foo.dwo
5
6.section .foo.dwo
7// CHECK: error: A dwo section may not contain relocations
8.quad .text
9// CHECK: error: A dwo section may not contain relocations
10.quad .foo.dwo
11