diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-14 01:05:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-14 01:05:35 +0000 |
commit | 1c16d1b576bc215fa116a025efa4fca7090d6b5c (patch) | |
tree | 0b3ca31d483da069d69bf85f2956caa072d26710 /clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h | |
parent | 5085710892a0284899044c143d299fbaa726ffc9 (diff) | |
download | bcm5719-llvm-1c16d1b576bc215fa116a025efa4fca7090d6b5c.tar.gz bcm5719-llvm-1c16d1b576bc215fa116a025efa4fca7090d6b5c.zip |
[modules] When merging one definition into another, propagate the list of
re-exporting modules from the discarded definition to the retained definition.
llvm-svn: 281429
Diffstat (limited to 'clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h')
-rw-r--r-- | clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h b/clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h index e6592027611..7225110a377 100644 --- a/clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h +++ b/clang/test/Modules/Inputs/merge-template-pattern-visibility/a.h @@ -4,3 +4,7 @@ template<typename T> struct B; template<typename, typename> struct A {}; template<typename T> struct B : A<T> {}; template<typename T> inline auto C(T) {} + +namespace CrossModuleMerge { + template<typename T> inline auto D(T) {} +} |