summaryrefslogtreecommitdiffstats
path: root/test/Modules/merge-template-friend.cpp
blob: 37508a6c639094a28f3a1f72d3242fa4e3afefd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: rm -rf %t
//
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \
// RUN:   -emit-module -fmodule-name=a -o %t/a.pcm \
// RUN:   %S/Inputs/merge-template-friend/module.modulemap
//
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \
// RUN:   -emit-module -fmodule-name=b -o %t/b.pcm \
// RUN:   %S/Inputs/merge-template-friend/module.modulemap
//
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -fmodules-cache-path=%t \
// RUN:   -I%S/Inputs/merge-template-friend \
// RUN:   -fmodule-file=%t/a.pcm \
// RUN:   -fmodule-file=%t/b.pcm \
// RUN:   -verify %s

#include "friend.h"
#include "def.h"

::ns::C<int> c;

// expected-no-diagnostics
OpenPOWER on IntegriCloud