Richard Smith | 7a591a4 | 2015-07-08 02:22:15 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 6f4e2e0 | 2016-08-23 19:41:39 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fno-modules-error-recovery -std=c++14 \ |
Richard Smith | 7a591a4 | 2015-07-08 02:22:15 +0000 | [diff] [blame] | 3 | // RUN: -fmodule-name=X -emit-module %S/Inputs/merge-template-pattern-visibility/module.modulemap -x c++ \ |
Richard Smith | 6f4e2e0 | 2016-08-23 19:41:39 +0000 | [diff] [blame] | 4 | // RUN: -fmodules-local-submodule-visibility -o %t/X.pcm |
Richard Smith | 6561f92 | 2016-09-12 21:06:40 +0000 | [diff] [blame] | 5 | // RUN: %clang_cc1 -fmodules -fno-modules-error-recovery -std=c++14 \ |
| 6 | // RUN: -fmodule-name=Y -emit-module %S/Inputs/merge-template-pattern-visibility/module.modulemap -x c++ \ |
| 7 | // RUN: -fmodules-local-submodule-visibility -o %t/Y.pcm |
| 8 | // RUN: %clang_cc1 -fmodules -fno-modules-error-recovery -std=c++14 -fmodule-file=%t/X.pcm -fmodule-file=%t/Y.pcm \ |
| 9 | // RUN: -fmodules-local-submodule-visibility -verify %s -I%S/Inputs/merge-template-pattern-visibility |
| 10 | |
| 11 | #include "b.h" |
| 12 | #include "d.h" |
| 13 | |
| 14 | // expected-no-diagnostics |
| 15 | void g() { |
| 16 | CrossModuleMerge::B<int> bi; |
| 17 | CrossModuleMerge::C(0); |
| 18 | } |