Richard Smith | 7474dd92 | 2015-03-11 18:21:02 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \ |
Richard Smith | 7474dd92 | 2015-03-11 18:21:02 +0000 | [diff] [blame] | 4 | // RUN: -emit-module -fmodule-name=a -o %t/a.pcm \ |
| 5 | // RUN: %S/Inputs/merge-template-friend/module.modulemap |
| 6 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 7 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \ |
Richard Smith | 7474dd92 | 2015-03-11 18:21:02 +0000 | [diff] [blame] | 8 | // RUN: -emit-module -fmodule-name=b -o %t/b.pcm \ |
| 9 | // RUN: %S/Inputs/merge-template-friend/module.modulemap |
| 10 | // |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 11 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \ |
Richard Smith | 7474dd92 | 2015-03-11 18:21:02 +0000 | [diff] [blame] | 12 | // RUN: -I%S/Inputs/merge-template-friend \ |
| 13 | // RUN: -fmodule-file=%t/a.pcm \ |
| 14 | // RUN: -fmodule-file=%t/b.pcm \ |
| 15 | // RUN: -verify %s |
| 16 | |
| 17 | #include "friend.h" |
| 18 | #include "def.h" |
| 19 | |
| 20 | ::ns::C<int> c; |
| 21 | |
| 22 | // expected-no-diagnostics |