diff options
Diffstat (limited to 'clang/test/Modules/Inputs/import-textual')
8 files changed, 57 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/import-textual/M/A/A.h b/clang/test/Modules/Inputs/import-textual/M/A/A.h new file mode 100644 index 00000000000..ebe4979d7c1 --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M/A/A.h @@ -0,0 +1,4 @@ + +#import "someheader.h" + +typedef myint aint; diff --git a/clang/test/Modules/Inputs/import-textual/M/B/B.h b/clang/test/Modules/Inputs/import-textual/M/B/B.h new file mode 100644 index 00000000000..ba85071c014 --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M/B/B.h @@ -0,0 +1,4 @@ + +#import "someheader.h" + +typedef myint bint; diff --git a/clang/test/Modules/Inputs/import-textual/M/module.modulemap b/clang/test/Modules/Inputs/import-textual/M/module.modulemap new file mode 100644 index 00000000000..f80194876ca --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M/module.modulemap @@ -0,0 +1,17 @@ + +module M { + + module A { + header "A/A.h" + textual header "someheader.h" + export * + } + + module B { + header "B/B.h" + textual header "someheader.h" + export * + } + + export * +} diff --git a/clang/test/Modules/Inputs/import-textual/M/someheader.h b/clang/test/Modules/Inputs/import-textual/M/someheader.h new file mode 100644 index 00000000000..16fae408724 --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M/someheader.h @@ -0,0 +1,6 @@ +#ifndef C_GUARD +#define C_GUARD + +typedef int myint; + +#endif diff --git a/clang/test/Modules/Inputs/import-textual/M2/A/A.h b/clang/test/Modules/Inputs/import-textual/M2/A/A.h new file mode 100644 index 00000000000..ebe4979d7c1 --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M2/A/A.h @@ -0,0 +1,4 @@ + +#import "someheader.h" + +typedef myint aint; diff --git a/clang/test/Modules/Inputs/import-textual/M2/B/B.h b/clang/test/Modules/Inputs/import-textual/M2/B/B.h new file mode 100644 index 00000000000..ba85071c014 --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M2/B/B.h @@ -0,0 +1,4 @@ + +#import "someheader.h" + +typedef myint bint; diff --git a/clang/test/Modules/Inputs/import-textual/M2/module.modulemap b/clang/test/Modules/Inputs/import-textual/M2/module.modulemap new file mode 100644 index 00000000000..f80194876ca --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M2/module.modulemap @@ -0,0 +1,17 @@ + +module M { + + module A { + header "A/A.h" + textual header "someheader.h" + export * + } + + module B { + header "B/B.h" + textual header "someheader.h" + export * + } + + export * +} diff --git a/clang/test/Modules/Inputs/import-textual/M2/someheader.h b/clang/test/Modules/Inputs/import-textual/M2/someheader.h new file mode 100644 index 00000000000..df2009a019b --- /dev/null +++ b/clang/test/Modules/Inputs/import-textual/M2/someheader.h @@ -0,0 +1 @@ +typedef int myint; |

