1# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error: 2 3.section .alloc_w,"aw",@progbits; w: 4# CHECK: :[[#@LINE+1]]:16: error: .uleb128 expression is not absolute 5.uleb128 extern-w # extern is undefined 6# CHECK: :[[#@LINE+1]]:11: error: .uleb128 expression is not absolute 7.uleb128 w-extern 8# CHECK: :[[#@LINE+1]]:11: error: .uleb128 expression is not absolute 9.uleb128 x-w # x is later defined in another section 10.uleb128 w1-w # w1 is later defined in the same section 11w1: 12 13.section .alloc_x,"aw",@progbits; x: 14# CHECK: :[[#@LINE+1]]:11: error: .sleb128 expression is not absolute 15.sleb128 y-x 16.section .alloc_y,"aw",@progbits; y: 17# CHECK: :[[#@LINE+1]]:11: error: .sleb128 expression is not absolute 18.sleb128 x-y 19 20.section .nonalloc_x; nx: 21# CHECK: :[[#@LINE+1]]:12: error: .sleb128 expression is not absolute 22.sleb128 ny-nx 23.section .nonalloc_y; ny: 24# CHECK: :[[#@LINE+1]]:12: error: .sleb128 expression is not absolute 25.sleb128 nx-ny 26