diff options
Diffstat (limited to 'test/Modules/autolink.m')
-rw-r--r-- | test/Modules/autolink.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Modules/autolink.m b/test/Modules/autolink.m new file mode 100644 index 0000000000..e4db6991fc --- /dev/null +++ b/test/Modules/autolink.m @@ -0,0 +1,18 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -emit-llvm -o - -fmodule-cache-path %t -fmodules -F %S/Inputs -I %S/Inputs %s | FileCheck %s + +@import autolink.sub2; + +int f() { + return autolink_sub2(); +} + +@import autolink; + +int g() { + return autolink; +} + +// CHECK: !llvm.link.libraries = !{![[AUTOLINK:[0-9]+]], ![[AUTOLINK_FRAMEWORK:[0-9]+]]} +// CHECK: ![[AUTOLINK]] = metadata !{metadata !"autolink", i1 false} +// CHECK: ![[AUTOLINK_FRAMEWORK]] = metadata !{metadata !"autolink_framework", i1 true} |