1# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t 2# RUN: llvm-readelf -x .text %t | FileCheck %s 3# RUN: llvm-mc -filetype=obj -triple=x86_64 --defsym ERR=1 %s -o %t1 4# RUN: llvm-readelf -x .text %t1 | FileCheck %s --check-prefix=CHECK1 5 6# CHECK: 0x00000000 9090 7# CHECK1: 0x00000000 90909090 90 8 9.subsection 1 10661: 11 nop 12662: 13.previous 14## 661 and 662 are in the same fragment being laied out. 15 .org . - (662b-661b) + (662b-661b) 16 nop 17 18.ifdef ERR 19.subsection 1 20661: 21 .p2align 2 22 nop 23662: 24.previous 25# ERR: :[[#@LINE+1]]:8: error: expected assembly-time absolute expression 26 .org . - (662b-661b) + (662b-661b) 27 nop 28.endif 29