1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O0 -mtriple=x86_64-apple-darwin -o - %s > %t 2*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck --check-prefix=CHECK-ASM < %t %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; CHECK-ASM: .linker_option "-lz" 5*9880d681SAndroid Build Coastguard Worker; CHECK-ASM-NEXT: .linker_option "-framework", "Cocoa" 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-readobj -macho-linker-options > %t 8*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck --check-prefix=CHECK-OBJ < %t %s 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Linker Options { 11*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Size: 16 12*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Strings [ 13*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Value: -lz 14*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: ] 15*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: } 16*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Linker Options { 17*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Size: 32 18*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Strings [ 19*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Value: -framework 20*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Value: Cocoa 21*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: ] 22*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: } 23*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Linker Options { 24*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Size: 24 25*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Strings [ 26*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: Value: -lmath 27*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: ] 28*9880d681SAndroid Build Coastguard Worker; CHECK-OBJ: } 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard Worker!0 = !{i32 6, !"Linker Options", !{!{!"-lz"}, !{!"-framework", !"Cocoa"}, !{!"-lmath"}}} 31*9880d681SAndroid Build Coastguard Worker 32*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{ !0 } 33