diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-04-12 19:58:30 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-04-12 19:58:30 +0000 |
commit | 58df343b76682e805bf1a90999b745a216dedc9f (patch) | |
tree | 9a76e14b56c4d3e123f9f779f0066f9ebde9226d /clang/test/Modules/explicit-build-missing-files.cpp | |
parent | 4c3fa5f9551639505513a3317fe97399557b1311 (diff) | |
download | bcm5719-llvm-58df343b76682e805bf1a90999b745a216dedc9f.tar.gz bcm5719-llvm-58df343b76682e805bf1a90999b745a216dedc9f.zip |
[modules] When an incompatible module file is explicitly provided for a module,
and we fall back to textual inclusion, don't require the module as a whole to
be marked available; it's OK if some other file in the same module is missing,
just as it would be if the header were explicitly marked textual.
llvm-svn: 266113
Diffstat (limited to 'clang/test/Modules/explicit-build-missing-files.cpp')
-rw-r--r-- | clang/test/Modules/explicit-build-missing-files.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Modules/explicit-build-missing-files.cpp b/clang/test/Modules/explicit-build-missing-files.cpp index 1ee65d9c5e0..ebe08fb40eb 100644 --- a/clang/test/Modules/explicit-build-missing-files.cpp +++ b/clang/test/Modules/explicit-build-missing-files.cpp @@ -18,7 +18,7 @@ // RUN: -fmodules-embed-all-files // RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s // RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -DERRORS 2>&1 | FileCheck %s -// RUN: rm %t/modulemap +// RUN: mv %t/modulemap %t/modulemap.moved // RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s // RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -DERRORS 2>&1 | FileCheck %s // RUN: rm %t/other.modulemap @@ -32,6 +32,9 @@ // RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s // RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/b.pcm %s // RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -DERRORS 2>&1 | FileCheck %s --check-prefix=MISSING-B +// RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm -fmodule-map-file=%t/modulemap.moved %s +// RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm -fmodule-map-file=%t/modulemap.moved -std=c++1z %s +// RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm -fmodule-map-file=%t/modulemap.moved -std=c++1z -Wno-module-file-config-mismatch %s -Db=a // RUN: rm %t/a.h // RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -verify // RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/b.pcm %s -verify |