diff options
author | dim <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
commit | 3191b2b32a96e1a6ee833fcca73e5c8e0c67ba65 (patch) | |
tree | dbbd4047878da71c1a706e26ce05b4e7791b14cc /test/Modules/Inputs/redecl-found-building-chains | |
parent | 38d6f2e7f2ce51a5b3836d26596c6c34a3288752 (diff) | |
download | FreeBSD-src-3191b2b32a96e1a6ee833fcca73e5c8e0c67ba65.zip FreeBSD-src-3191b2b32a96e1a6ee833fcca73e5c8e0c67ba65.tar.gz |
Vendor import of clang trunk r238337:
https://llvm.org/svn/llvm-project/cfe/trunk@238337
Diffstat (limited to 'test/Modules/Inputs/redecl-found-building-chains')
5 files changed, 14 insertions, 0 deletions
diff --git a/test/Modules/Inputs/redecl-found-building-chains/a.h b/test/Modules/Inputs/redecl-found-building-chains/a.h new file mode 100644 index 0000000..27f503c --- /dev/null +++ b/test/Modules/Inputs/redecl-found-building-chains/a.h @@ -0,0 +1 @@ +struct A; diff --git a/test/Modules/Inputs/redecl-found-building-chains/b.h b/test/Modules/Inputs/redecl-found-building-chains/b.h new file mode 100644 index 0000000..f69dccb --- /dev/null +++ b/test/Modules/Inputs/redecl-found-building-chains/b.h @@ -0,0 +1,2 @@ +struct A; // ensure that loading b's canonical decl doesn't load the definition +struct A {}; diff --git a/test/Modules/Inputs/redecl-found-building-chains/c.h b/test/Modules/Inputs/redecl-found-building-chains/c.h new file mode 100644 index 0000000..27f503c --- /dev/null +++ b/test/Modules/Inputs/redecl-found-building-chains/c.h @@ -0,0 +1 @@ +struct A; diff --git a/test/Modules/Inputs/redecl-found-building-chains/d.h b/test/Modules/Inputs/redecl-found-building-chains/d.h new file mode 100644 index 0000000..0beef5a --- /dev/null +++ b/test/Modules/Inputs/redecl-found-building-chains/d.h @@ -0,0 +1,6 @@ +#include "a.h" // ensure that our canonical decl is not from b +struct A; +#include "b.h" +struct A; +#include "c.h" // ensure that our type for A doesn't reference the definition in b +struct A; diff --git a/test/Modules/Inputs/redecl-found-building-chains/module.modulemap b/test/Modules/Inputs/redecl-found-building-chains/module.modulemap new file mode 100644 index 0000000..73a7c41 --- /dev/null +++ b/test/Modules/Inputs/redecl-found-building-chains/module.modulemap @@ -0,0 +1,4 @@ +module a { header "a.h" export * } +module b { header "b.h" export * } +module c { header "c.h" export * } +module d { header "d.h" export * } |