diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:33:12 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:33:12 +0000 |
commit | ef915aab0ac566c55bfb0d7a9f6635bb5d94d4af (patch) | |
tree | ac935cfa19985d33098fc13e288b5ac830672dba /test/Modules/Inputs | |
parent | 325377b57338e700317f5e423e5b0f1c08d99a39 (diff) |
Notes
Diffstat (limited to 'test/Modules/Inputs')
-rw-r--r-- | test/Modules/Inputs/preprocess/file.h | 6 | ||||
-rw-r--r-- | test/Modules/Inputs/preprocess/fwd.h | 1 | ||||
-rw-r--r-- | test/Modules/Inputs/preprocess/module.modulemap | 2 | ||||
-rw-r--r-- | test/Modules/Inputs/preprocess/other.h | 1 |
4 files changed, 9 insertions, 1 deletions
diff --git a/test/Modules/Inputs/preprocess/file.h b/test/Modules/Inputs/preprocess/file.h index 808ade5768b15..84cf22a337406 100644 --- a/test/Modules/Inputs/preprocess/file.h +++ b/test/Modules/Inputs/preprocess/file.h @@ -1,3 +1,9 @@ +#include "other.h" + +#ifndef FILE_H +#define FILE_H struct __FILE; #include "fwd.h" typedef struct __FILE FILE; +typedef foo bar; +#endif diff --git a/test/Modules/Inputs/preprocess/fwd.h b/test/Modules/Inputs/preprocess/fwd.h index 4a19c6d0c057c..f6de1800c0000 100644 --- a/test/Modules/Inputs/preprocess/fwd.h +++ b/test/Modules/Inputs/preprocess/fwd.h @@ -1 +1,2 @@ +typedef struct foo foo; struct __FILE; diff --git a/test/Modules/Inputs/preprocess/module.modulemap b/test/Modules/Inputs/preprocess/module.modulemap index f700db03beac4..5be2e5c4ff98a 100644 --- a/test/Modules/Inputs/preprocess/module.modulemap +++ b/test/Modules/Inputs/preprocess/module.modulemap @@ -1,5 +1,5 @@ module fwd { header "fwd.h" export * } -module file { header "file.h" header "file2.h" export * } +module file { header "file.h" header "file2.h" header "other.h" export * } module nested { module a { header "a.h" } module b { header "b.h" } diff --git a/test/Modules/Inputs/preprocess/other.h b/test/Modules/Inputs/preprocess/other.h new file mode 100644 index 0000000000000..84c4d1d5eb235 --- /dev/null +++ b/test/Modules/Inputs/preprocess/other.h @@ -0,0 +1 @@ +// other.h: empty |