diff options
Diffstat (limited to 'llvm/test/MC/ELF/dwo-restrict-relocs.s')
| -rw-r--r-- | llvm/test/MC/ELF/dwo-restrict-relocs.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/dwo-restrict-relocs.s b/llvm/test/MC/ELF/dwo-restrict-relocs.s new file mode 100644 index 00000000000..b624d40aad7 --- /dev/null +++ b/llvm/test/MC/ELF/dwo-restrict-relocs.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t1 -split-dwarf-file %t2 2>&1 | FileCheck %s + +// CHECK: error: A relocation may not refer to a dwo section +.quad .foo.dwo + +.section .foo.dwo +// CHECK: error: A dwo section may not contain relocations +.quad .text +// CHECK: error: A dwo section may not contain relocations +.quad .foo.dwo |

