Juergen Ributzka | 8aaae5a | 2015-11-13 19:08:07 +0000 | [diff] [blame] | 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.module.flags = !{{{.*}}} |
| 12 | // CHECK: !{{[0-9]+}} = !{i32 6, !"Linker Options", ![[AUTOLINK_OPTIONS:[0-9]+]]} |
| 13 | // CHECK: ![[AUTOLINK_OPTIONS]] = !{![[AUTOLINK_FRAMEWORK:[0-9]+]]} |
| 14 | // CHECK: ![[AUTOLINK_FRAMEWORK]] = !{!"-framework", !"AutolinkTBD"} |
| 15 | |
| 16 | // CHECK-AUTOLINK-DISABLED: !llvm.module.flags |
| 17 | // CHECK-AUTOLINK-DISABLED-NOT: "Linker Options" |