2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/insert-after.s -o %t.o
3 # RUN: not ld.lld -T %s %t.o -o /dev/null 2>&1 | FileCheck %s
5 # CHECK: error: unable to insert .foo.data after .not_exist
6 # CHECK: error: unable to insert .foo.text before .not_exist
8 SECTIONS { .foo.data : {} } INSERT AFTER .not_exist;
9 SECTIONS { .foo.text : {} } INSERT BEFORE .not_exist;