diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-09 21:23:21 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-09 21:23:21 +0000 |
| commit | fdc82ccb3f2b23a89e7002fe8238e1422b00f96a (patch) | |
| tree | f189aa0a3010e0eb212970b8eadf0a8b098985ea /test/Modules | |
| parent | 6694ed095d6b27a2c92ec4fd63664fcd88a05749 (diff) | |
Notes
Diffstat (limited to 'test/Modules')
| -rw-r--r-- | test/Modules/Inputs/pch-with-module-name/A.h | 1 | ||||
| -rw-r--r-- | test/Modules/Inputs/pch-with-module-name/C.h | 1 | ||||
| -rw-r--r-- | test/Modules/Inputs/pch-with-module-name/C.m | 1 | ||||
| -rw-r--r-- | test/Modules/Inputs/pch-with-module-name/D.h | 1 | ||||
| -rw-r--r-- | test/Modules/Inputs/pch-with-module-name/module.modulemap | 9 | ||||
| -rw-r--r-- | test/Modules/Inputs/pch-with-module-name/test.h | 1 | ||||
| -rw-r--r-- | test/Modules/pch-with-module-name.m | 5 |
7 files changed, 19 insertions, 0 deletions
diff --git a/test/Modules/Inputs/pch-with-module-name/A.h b/test/Modules/Inputs/pch-with-module-name/A.h new file mode 100644 index 000000000000..a73b3759d4ec --- /dev/null +++ b/test/Modules/Inputs/pch-with-module-name/A.h @@ -0,0 +1 @@ +// in pch diff --git a/test/Modules/Inputs/pch-with-module-name/C.h b/test/Modules/Inputs/pch-with-module-name/C.h new file mode 100644 index 000000000000..f681dd80974a --- /dev/null +++ b/test/Modules/Inputs/pch-with-module-name/C.h @@ -0,0 +1 @@ +#include "D.h" diff --git a/test/Modules/Inputs/pch-with-module-name/C.m b/test/Modules/Inputs/pch-with-module-name/C.m new file mode 100644 index 000000000000..90fe1bcc5851 --- /dev/null +++ b/test/Modules/Inputs/pch-with-module-name/C.m @@ -0,0 +1 @@ +//empty diff --git a/test/Modules/Inputs/pch-with-module-name/D.h b/test/Modules/Inputs/pch-with-module-name/D.h new file mode 100644 index 000000000000..90fe1bcc5851 --- /dev/null +++ b/test/Modules/Inputs/pch-with-module-name/D.h @@ -0,0 +1 @@ +//empty diff --git a/test/Modules/Inputs/pch-with-module-name/module.modulemap b/test/Modules/Inputs/pch-with-module-name/module.modulemap new file mode 100644 index 000000000000..379b0d48d589 --- /dev/null +++ b/test/Modules/Inputs/pch-with-module-name/module.modulemap @@ -0,0 +1,9 @@ +module CloudKit { + header "C.h" + export * +} + +module Contacts { + header "D.h" + export * +} diff --git a/test/Modules/Inputs/pch-with-module-name/test.h b/test/Modules/Inputs/pch-with-module-name/test.h new file mode 100644 index 000000000000..7a13ba4d72d4 --- /dev/null +++ b/test/Modules/Inputs/pch-with-module-name/test.h @@ -0,0 +1 @@ +#include "A.h" diff --git a/test/Modules/pch-with-module-name.m b/test/Modules/pch-with-module-name.m new file mode 100644 index 000000000000..c4096308c4f6 --- /dev/null +++ b/test/Modules/pch-with-module-name.m @@ -0,0 +1,5 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/pch-with-module-name -emit-pch -o %t-A.pch %S/Inputs/pch-with-module-name/test.h -fmodule-name=Contacts -x objective-c-header +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/pch-with-module-name -include-pch %t-A.pch %s -fsyntax-only -fmodule-name=Contacts -verify +// expected-no-diagnostics +#include "C.h" |
