2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: echo "SECTIONS \
6 # RUN: . = DEFINED(defined) ? 0x11000 : .; \
7 # RUN: .foo : { *(.foo*) } \
8 # RUN: . = DEFINED(notdefined) ? 0x12000 : 0x13000; \
9 # RUN: .bar : { *(.bar*) } \
11 # RUN: ld.lld -o %t1 --script %t.script %t
12 # RUN: llvm-objdump -section-headers %t1 | FileCheck %s
14 # CHECK: 1 .foo 00000008 0000000000011000 DATA
15 # CHECK: 2 .bar 00000008 0000000000013000 DATA
16 # CHECK: 3 .text 00000000 0000000000013008 TEXT DATA