diff options
| author | Douglas Gregor <dgregor@apple.com> | 2013-01-16 01:23:41 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2013-01-16 01:23:41 +0000 |
| commit | c60437fb89fee2bd595887ae5346938b62c53a71 (patch) | |
| tree | df62d727752cf00258a6041da15779462f06e968 /clang/test | |
| parent | 91a3190a2817709911feecedf63657cc122a3e09 (diff) | |
| download | bcm5719-llvm-c60437fb89fee2bd595887ae5346938b62c53a71.tar.gz bcm5719-llvm-c60437fb89fee2bd595887ae5346938b62c53a71.zip | |
Add -fmodules-autolink/-fno-modules-autolink (defaults to on) so that
users can explicitly enable/disable modules autolinking.
llvm-svn: 172592
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/modules.m | 6 | ||||
| -rw-r--r-- | clang/test/Modules/autolink.m | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/Driver/modules.m b/clang/test/Driver/modules.m index b93054dbf87..7752e22b7eb 100644 --- a/clang/test/Driver/modules.m +++ b/clang/test/Driver/modules.m @@ -4,3 +4,9 @@ // RUN: %clang -fmodules -fno-modules -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-MODULES %s // CHECK-HAS-MODULES: -fmodules +// RUN: %clang -fmodules -fno-modules -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-HAS-AUTOLINK %s +// CHECK-HAS-AUTOLINK: -fmodules-autolink + +// RUN: %clang -fmodules -fno-modules -fno-modules-autolink -fmodules -### %s 2>&1 | FileCheck -check-prefix=CHECK-NO-AUTOLINK %s +// CHECK-NO-AUTOLINK-NOT: -fmodules-autolink + diff --git a/clang/test/Modules/autolink.m b/clang/test/Modules/autolink.m index e1a240bd5b1..8dce12b21bd 100644 --- a/clang/test/Modules/autolink.m +++ b/clang/test/Modules/autolink.m @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -emit-llvm -o - -fmodule-cache-path %t -fmodules -F %S/Inputs -I %S/Inputs %s | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -o - -fmodule-cache-path %t -fmodules -fmodules-autolink -F %S/Inputs -I %S/Inputs %s | FileCheck %s @import autolink.sub2; |

