1 | // RUN: rm -rf %t |
2 | // RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck %s |
3 | // RUN: %clang_cc1 -emit-llvm -fno-autolink -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck --check-prefix=CHECK-AUTOLINK-DISABLED %s |
4 | |
5 | @import AutolinkTBD; |
6 | |
7 | int f() { |
8 | return foo(); |
9 | } |
10 | |
11 | // CHECK: !llvm.linker.options = !{![[AUTOLINK_FRAMEWORK:[0-9]+]]} |
12 | // CHECK: ![[AUTOLINK_FRAMEWORK]] = !{!"-framework", !"AutolinkTBD"} |
13 | |
14 | // CHECK-AUTOLINK-DISABLED: !llvm.module.flags |
15 | // CHECK-AUTOLINK-DISABLED-NOT: !llvm.linker.options |
16 | |