1// RUN: rm -rf %t 2// 3// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \ 4// RUN: -emit-module -fmodule-name=a -o %t/a.pcm \ 5// RUN: %S/Inputs/merge-template-friend/module.modulemap 6// 7// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \ 8// RUN: -emit-module -fmodule-name=b -o %t/b.pcm \ 9// RUN: %S/Inputs/merge-template-friend/module.modulemap 10// 11// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \ 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 23