mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 12:32:33 +03:00
13 lines
389 B
D
13 lines
389 B
D
// RUN: %ldc -mtriple=x86_64-apple-darwin -output-ll -of=%t.ll %s && FileCheck %s < %t.ll
|
|
|
|
// REQUIRES: target_X86
|
|
|
|
// CHECK: !llvm.linker.options = !{!0, !1, !2}
|
|
|
|
// CHECK: !0 = !{!"-lmylib"}
|
|
pragma(lib, "mylib");
|
|
|
|
// CHECK: !1 = !{!"-myflag"}
|
|
pragma(linkerDirective, "-myflag");
|
|
// CHECK: !2 = !{!"-framework", !"CoreFoundation"}
|
|
pragma(linkerDirective, "-framework", "CoreFoundation");
|