1 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin -o - %s > %t
2 ; RUN: FileCheck --check-prefix=CHECK-ASM < %t %s
4 ; CHECK-ASM: .linker_option "-lz"
5 ; CHECK-ASM-NEXT: .linker_option "-framework", "Cocoa"
7 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | macho-dump > %t
8 ; RUN: FileCheck --check-prefix=CHECK-OBJ < %t %s
10 ; CHECK-OBJ: ('load_commands', [
11 ; CHECK-OBJ: # Load Command 1
12 ; CHECK-OBJ: (('command', 45)
13 ; CHECK-OBJ: ('size', 16)
14 ; CHECK-OBJ: ('count', 1)
15 ; CHECK-OBJ: ('_strings', [
19 ; CHECK-OBJ: # Load Command 2
20 ; CHECK-OBJ: (('command', 45)
21 ; CHECK-OBJ: ('size', 32)
22 ; CHECK-OBJ: ('count', 2)
23 ; CHECK-OBJ: ('_strings', [
24 ; CHECK-OBJ: "-framework",
27 ; CHECK-OBJ: # Load Command 3
28 ; CHECK-OBJ: (('command', 45)
29 ; CHECK-OBJ: ('size', 24)
30 ; CHECK-OBJ: ('count', 1)
31 ; CHECK-OBJ: ('_strings', [
32 ; CHECK-OBJ: "-lmath",
37 !0 = !{i32 6, !"Linker Options", !{!{!"-lz"}, !{!"-framework", !"Cocoa"}, !{!"-lmath"}}}
39 !llvm.module.flags = !{ !0 }