You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
606 B
16 lines
606 B
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck %s
|
|
// 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
|
|
|
|
@import AutolinkTBD;
|
|
|
|
int f() {
|
|
return foo();
|
|
}
|
|
|
|
// CHECK: !llvm.linker.options = !{![[AUTOLINK_FRAMEWORK:[0-9]+]]}
|
|
// CHECK: ![[AUTOLINK_FRAMEWORK]] = !{!"-framework", !"AutolinkTBD"}
|
|
|
|
// CHECK-AUTOLINK-DISABLED: !llvm.module.flags
|
|
// CHECK-AUTOLINK-DISABLED-NOT: !llvm.linker.options
|