1 // RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - 2>%t.err | llvm-readobj -sections | FileCheck %s
2 // RUN: FileCheck --check-prefix=WARNING < %t.err %s
5 // CHECK-NEXT: Index: 0
6 // CHECK-NEXT: Name: __text (
9 // CHECK-NEXT: Index: 1
10 // CHECK-NEXT: Name: __textcoal_nt (
13 // CHECK-NEXT: Index: 2
14 // CHECK-NEXT: Name: __const_coal (
17 // CHECK-NEXT: Index: 3
18 // CHECK-NEXT: Name: __datacoal_nt (
20 // WARNING: warning: section "__textcoal_nt" is deprecated
21 // WARNING: note: change section name to "__text"
22 // WARNING: warning: section "__const_coal" is deprecated
23 // WARNING: note: change section name to "__const"
24 // WARNING: warning: section "__datacoal_nt" is deprecated
25 // WARNING: note: change section name to "__data"
27 .section __TEXT,__textcoal_nt,coalesced,pure_instructions
34 .section __TEXT,__const_coal,coalesced
41 .section __DATA,__datacoal_nt,coalesced
48 .subsections_via_symbols